if (!functions_js_included){ //start of conditional include

var functions_js_included = true;

function pop_me(obj,name,features){
		var the_url = obj.href;
		obj.href= "javascript:pop_href=window.open('"+the_url+"','"+name+"','"+features+"');pop_href.focus();";
		obj.onclick = null;
		return 0;
}

function cms_pop(obj,name,l,t,w,h,frameless){
	var the_url = obj.href;
	var show_ie = document.all;
	frameless = 0;
	if (show_ie && frameless){	
		obj.href= "javascript:pop_href=pop_ie('"+the_url+"','"+name+"','"+l+"','"+t+"','"+w+"','"+h+"');pop_href.focus();";
	}else{
		features="top="+t+",left="+l+",width="+w+",height="+h+",scrollbars=no";
		obj.href= "javascript:pop_href=window.open('"+the_url+"','"+name+"','"+features+"');pop_href.focus();";
	}
	
	obj.onclick = null;
	return 0;
}

function cms_popresize(obj,name,l,t,w,h,frameless){
	var the_url = obj.href;
	var show_ie = document.all;
	frameless = 0;
	if (show_ie && frameless){	
		obj.href= "javascript:pop_href=pop_ie('"+the_url+"','"+name+"','"+l+"','"+t+"','"+w+"','"+h+"');pop_href.focus();";
		//alert("Just a test");
	} else {
		features="top="+t+",left="+l+",width="+w+",height="+h+",scrollbars=no, resizable=1";
		obj.href= "javascript:pop_href=window.open('"+the_url+"','"+name+"','"+features+"');pop_href.focus();";
	}
	
	obj.onclick = null;
	return 0;
}

function pop_ie(url,title,l,t,w,h){

    var href = window.open("","","fullscreen=yes");   
     
    href.resizeTo(w,h);
    href.moveTo(l,t);
	

	var top ="<html><body style='overflow:hidden;' leftmargin=0 topmargin=0>";
	var iframe="<iframe  width=100% height=100% scrolling='no' frameborder='0' src='"+url+"'></iframe>";
	var bottom = "</body></html>";
	
    href.document.open();
	href.document.write(top+iframe+bottom);
    href.document.close();
	
	return href;

}

} //end of conditional include
