/*!
 * 原模板中js移植
 */
window.onerror=hide_error_message;function hide_error_message(){return true;}

<!--打印函数
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function preview() {
	bdhtml=window.document.body.innerHTML;
	sprnstr="<!--startprint-->";
	eprnstr="<!--endprint-->";
	prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
	prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
	window.document.body.innerHTML=prnhtml;
	window.print();//通过这种方式获取打印的部分片段
	window.document.body.innerHTML=bdhtml;
}
//-->

Ext.ux.Lightbox.register('a[rel^=lytebox]');
Ext.ux.Lightbox.register('a.lb-flower', true); // true to show them as a set

<!--START CA Natural Search tracking -->
<!--
document.write("<img src=http://tracking.searchmarketing.com/welcome.asp?SMCID=62001114&x="+escape(document.referrer)+" width=1 height=1>");
//-->
<!--END CA Natural Search tracking -->


$(document).ready(function(){
	changecolor();
	$('.tab_menu li:first').addClass('selected');
	$('.tab_box div:first').css('display','block');
	autoroll();
	hookThumb();
});
var i=-1; //第i+1个tab开始
var offset = 3000; //轮换时间
var timer = null;
function autoroll(){
	n = $('.tab_menu li').length-1;
	i++;
	if(i > n){i = 0;}
	slide(i);
	timer = window.setTimeout(autoroll, offset);
}
function slide(i){
	$('.tab_menu li').eq(i).addClass('selected').siblings().removeClass('selected');
	$('.tab_box div').eq(i).css('display','block').siblings('.tab_box div').css('display','none');
}
function hookThumb(){ 
	$('.tab_menu li').hover(
	function () {
		if (timer) {
			clearTimeout(timer);
			i = $(this).prevAll().length;
			slide(i); 
		}
	},
	function () {
		timer = window.setTimeout(autoroll, offset); 
		this.blur(); 
		return false;
	}
	); 
}
$(function(){
	$('#side_menu li').hover(function(){
	$(this).children('ul').show();
	},function(){
	$(this).children('ul').hide();
	});
});
$(function(){
	$('.next_ico h1 a ').corner('round tl bl 10px;');
	$('.hover_bg_top,.hover_menu').corner('round tr 10px;');
});
$(function(){
	$('.help').mouseover(function(){
		$('#help').show();
		$('.help').mouseout(function(){
			$('#help').hide();	
		});
	});
});


var index_url="http://shop.goeasyonline.com.au/";//首页地址变量
var index_url_store="http://shop.goeasyonline.com.au/store/";//首页地址变量
var url=window.location.href;//当前页的URL地址
if (url==index_url || url==index_url_store ){
//alert(index_url);
//alert(url);
window.onload = function(){
//alert(url);
document.getElementById('right_tab').style.display='block'
}
}else {
//alert('不是首页');
}

var icpForm319 = document.getElementById('icpsignup319');
if (document.location.protocol === "https:")
icpForm319.action = "https://app.icontact.com/icp/signup.php";
function verifyRequired319() {
  if (document.getElementById('fields_email').value == "") {
    document.getElementById('fields_email').focus();
    alert("The Email field is required.");
    return false;
  }
return true;
}
