// popup __________________________________________________
var MacIe = navigator.userAgent.indexOf( "Mac" ) > -1 && navigator.userAgent.indexOf( "MSIE" ) > -1;
var JsWin;

function commonpop( JsUrl, JsWinName, JSWidth, JSHeight ){
JSWidth = parseInt( JSWidth );
JSHeight = parseInt( JSHeight );
if( !MacIe ){ JSWidth = JSWidth + 17; }
if( MacIe ){ JSWidth = JSWidth - 1 ; }
JsProperty = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + JSWidth + ",height=" + JSHeight;
JsWin = window.open( JsUrl, JsWinName, JsProperty );
if (JsWin) {
	JsWin.focus();
	return true;
} else {
	return false;
}
}

function commonpop2( JsUrl, JsWinName, JSWidth, JSHeight ){
JSWidth = parseInt( JSWidth );
JSHeight = parseInt( JSHeight );
JsProperty = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + JSWidth + ",height=" + JSHeight;
JsWin = window.open( JsUrl, JsWinName, JsProperty );
if( MacIe ){ return; }
JsWin.focus();
}




//Rollover __________________________________________________
$(document).ready(function(){
function rollover_img(selector, suffix){
$(selector).each(function(i){
var defaultImg = $(this).attr("src");
if (!defaultImg.match((suffix))) {
var point = defaultImg.lastIndexOf(".")
var rolloverImg = defaultImg.slice(0, point) + suffix + defaultImg.slice(point);
var preloadImg = new Image();
preloadImg.src = rolloverImg;
$(this).hover(
function(){
$(this).attr("src", rolloverImg);
},
function(){
$(this).attr("src", defaultImg);
}
)
}
})
}
rollover_img("img.rollover", "_ov");
});




// jquery popup __________________________________________________
$(function(){
$('a[@href~="policy"]').click(function(){
policyWin = window.open(this.href, "policy","width=657,height=700,scrollbars=yes,resizable=yes,toolbar=yes");
policyWin.focus();
return false;
});
});