// JavaScript Document

/**
 *  rounded corners elements
 *	call corner before DOM is ready
 *
 */
window.onload = function()  {

		//drop shadows elements
		//$(".site_container").dropShadow({left: 5, top: 5, blur: 3, opacity: 0.8});
		
		//$(".site_container").dropShadow({left: 14, top: 14, blur: 5, opacity: 1.0});
        
		//$(".site_container").redrawShadow();     
		
		//corner elements
		$('.nav_cornerbox').corner("5px");
		
		
		//$('.new_to_the_store_cornerbox').corner("5px");
		$('.heading_cornerbox').corner("top 5px");
		$('.body_cornerbox').corner("bottom 5px"); 
		//$('#plcRoot_Layout_zoneTopShoppingcart_cmssearchbox_txtWord').corner("3px");
        //$('.searchTxtBox').corner("3px");
		$('.accountBar').corner("3px");
		$('.SearchText').corner("3px");

		//$('td .CMSSearchDialogSearchForTextBox').corner("3px");
		
		
		//$('.logonReg').corner("5px");
			
		//scrollpane elements
		//$('.scroll-pane').jScrollPane();
		//$('.center_column').jScrollPane();
 		var definedpath = "/Products/Merchandise/Aussies.aspx";
		var definedpath2 = "http://surfshop.slsa.com.au/CMSPages/PortalTemplate.aspx?aliaspath=%2fProducts%2fMerchandise%2fAussies";	
	
	
		if ((document.location.pathname==definedpath) || (document.location==definedpath2))
		{
			
			
		   //alert("Aussies");
			
			//var hideRedBox = document.getElementById('new_to_the_store');
			//var hideRedFlash = document.getElementById('newtothestoreslider');
			
			
			//hideRedBox.style.display="none";
			//hideRedFlash.style.display="none";
	
		  
			//alert("turn blue on");
			swfobject.embedSWF("/App_Themes/EcommerceSite/flash/NewToTheStore_blue.swf", "newtothestoreslider_blue", "200px", "185px", "8.0.0", false, flashvars, params, attributes);	
	
			
			var blueslider = document.getElementById('newtothestoreslider_blue');
			blueslider.style.display="block";
		
			var newToTheStoreBox = document.getElementById('new_to_the_store');
			newToTheStoreBox.style.display="block";
	
		
		}
		
		else if (document.location.pathname!=definedpath) {
		
			swfobject.embedSWF("/App_Themes/EcommerceSite/flash/NewToTheStore.swf", "newtothestoreslider", "186px", "263px", "8.0.0", false, flashvars, params, attributes);	
	  
			var newToTheStoreBox = document.getElementById('new_to_the_store');
			newToTheStoreBox.style.display="block";
	
			var newToTheStoreFlash = document.getElementById('newtothestoreslider');
			newToTheStoreFlash.style.display="block";
		}
		
		//else if(document.location.pathname.toLowerCase() =="/coolie.aspx") {
			
		//}  
		  
		
		else {
		  
	
		}


	}
	
    //var App=({}), IE=false;   //@cc_on; IE=true; 

window.onresize=function(){
	  
	    //$(".site_container").redrawShadow();     
	 	//if(IE){ window.innerHeight = parseInt((document.documentElement.clientHeight || document.body.clientHeight) * 0.9); }
	    //if(IE){ window.innerWidth = parseInt((document.documentElement.clientWidth || document.body.clientWidth) * 0.9); }

		//App.width = parseInt(innerWidth * 0.98);
		//App.height = parseInt(innerHeight * 0.9);
		//App.top= parseInt(innerHeight * 0.03);
		//App.left=  innerWidth * 0.03;
		//App.ratio = App.height / App.width //the viewport ratio
		
		
		//$(".site_container").dropShadow({left: 14, top: 14, blur: 5, opacity: 1.0});
   }

 <!-- hide script from old browsers




// end hiding script from old browsers -->

 
