var myWidth = 0, myHeight = 0;
var gotoLock = false;
function report_window_size() {
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else {
		if( document.documentElement &&
			( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else {
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}
		}
	}
}
function get_window_size(){
	report_window_size();
}
function init() {
	window.onresize = get_window_size;
	get_window_size();
	

}
function goto(url) {
	cancelBubble = true;
	if (!gotoLock) {
		window.location=url;
		gotoLock=true;
	}
}

function banner(uri) {
var flashvars = {test: "true"};
var params = {wmode: "transparent", allowFullScreen: "false", quality: "High"};
var attributes = {id: "banner", name: "banner"};
swfobject.embedSWF(uri, "banner", "1000", "128", "10.0.0","", flashvars, params, attributes);
}

function bookmark(title) {
	var urli = window.location.href; 
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, urli,"");	
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( urli, title);
	}else if (window.opera && window.print) { // Opera Hotlist
		return true; 
	}	
}