jQuery.noConflict();
jQuery(document).ready(function(){
	Shadowbox.init({handleOversize: "resize"});
	
	//change color of error because SF uses inline css for color
	jQuery(".messageCell h4").attr("style","color:#C00;font: 11px/15px Arial, Helvetica, sans-serif;");
	
	//toolbar - press tab
	jQuery(".cp a").click(function(){
		jQuery(".cp a").removeClass("active");
		jQuery(this).addClass("active")})}
	);
	
	//Activate tab
	function initVFPage(b){
		jQuery(b).addClass("active")}
	
	//scale iframe to current window
	function scaletowindow(b,c,a){
		a=document.documentElement.clientHeight-a;
		if(a<c)a=c;
		jQuery(b).css("height",a)};
		
	//run bookmark	
	function doBookmark(burl,btitle){
		if (window.sidebar){
			window.sidebar.addPanel(btitle, burl, '');
		} else {
			window.external.AddFavorite(burl, btitle);
		}
	}
	
	
	
