<!--
function hpId(hpId){ return document.getElementById(hpId); }
function getCTime(){
	if(navigator.appName=='Microsoft Internet Explorer'){ setTimeout("loadHpAd()",500); }
    var d = new Date();
    var t = d.getFullYear() + ":" + d.getMonth() + ":" + d.getDate() + ":" + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds();
	hpId('cTime').value = t;  
}

function hpSavedPwd(pwd){
	if (pwd.value != '' && pwd.value != 'username' && hpId('password').value != '********')
	hpId('password').style.color = '#333';
}
				
var hpContent = new Array();

hpContent['Featured'] = '<div ><div>Checkout what\'s hottest on ibibo</div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://www.risingrockstars.ibibo.com" class="hpBg hpVodafone" ></a></div><div class="hpDescCont" ><a href="http://www.risingrockstars.ibibo.com" >ibibo Rising Rock Stars</a><div class="clearAll spacer5"></div>Rock Band \'PRAYAG\' India\'s first Rising Rock Stars on ibibo.com &amp; your band could be next!</div><div class="clearAll"></div></div> <div class="hpPromoCont"><div class="hpImgCont"><a href="http://games.ibibo.com/" class="hpBg hpIsinger" ></a></div><div class="hpDescCont" ><a href="http://games.ibibo.com/" >Pool</a><div class="clearAll spacer5"></div>The worlds\' most realistic 3D pool game. Play LIVE with other users!<br/>&nbsp;</div><div class="clearAll"></div></div> <div class="hpPromoCont"><div class="hpImgCont"><a href="http://photos.ibibo.com/ibeachbody" class="hpBg hpIfresh" ></a></div><div class="hpDescCont" ><a href="http://photos.ibibo.com/ibeachbody" >iBeach Body</a><div class="clearAll spacer5"></div>Appear in the ibibo Swim Suit Calendar 2010.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://groups.ibibo.com/paa" class="hpBg hpBackstreet" ></a></div><div class="hpDescCont" ><a href="http://groups.ibibo.com/paa" >Paa</a><div class="clearAll spacer5"></div>A very rare father-son-son-father story.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://controldiabetes.ibibo.com/" class="hpBg hpAlike" ></a></div><div class="hpDescCont" ><a href="http://controldiabetes.ibibo.com/" >Accu-Chek success story contest</a><div class="clearAll spacer5"></div>Share your success story and win Apple iPods.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://pears.ibibo.com/" class="hpBg hpHangman" ></a></div><div class="hpDescCont" ><a href="http://pears.ibibo.com/" >Masoom Moment Contest</a><div class="clearAll spacer5"></div>Share your Masoom moment story and win Apple ipods.</div><div class="clearAll"></div></div> </div></div><div class="clearAll"></div>';

hpContent['Games'] = '<div class="hpPromoCont"><div class="hpImgCont"><a href="http://play.ibibo.com/detail.php?wid=3380073" class="hpGamesBg hpParking" ></a></div><div class="hpDescCont" ><a href="http://play.ibibo.com/detail.php?wid=3380073" >					The Great Indian Parking Wars</a><div class="clearAll spacer5"></div>Park your cars on your friends\' streets and Challan friends when they illegally park on your street.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://play.ibibo.com/detail.php?wid=3380070" class="hpGamesBg hpAlikeg" ></a></div><div class="hpDescCont" ><a href="http://play.ibibo.com/detail.php?wid=3380070" >aLike</a><div class="clearAll spacer5"></div>Find out how similar you are to your real friends, by answering some cool questions.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://play.ibibo.com/detail.php?wid=3380071" class="hpGamesBg hpDraw" ></a></div><div class="hpDescCont" ><a href="http://play.ibibo.com/detail.php?wid=3380071" >Can U Draw</a><div class="clearAll spacer5"></div>You sketch and others guess in this drawing game!</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://games.ibibo.com/" class="hpGamesBg hpPool" ></a></div><div class="hpDescCont" ><a href="http://games.ibibo.com/" >Pool</a><div class="clearAll spacer5"></div>The worlds\' most realistic 3D pool game. Play LIVE with other users!</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://play.ibibo.com/detail.php?wid=3361001" class="hpGamesBg hpChess" ></a></div><div class="hpDescCont" ><a href="http://play.ibibo.com/detail.php?wid=3361001" >Chess</a><div class="clearAll spacer5"></div>Make your moves in one of the oldest strategy games in the world - CHESS!</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://games.ibibo.com" class="hpGamesBg hpTreasure" ></a></div><div class="hpDescCont" ><a href="http://games.ibibo.com" >Treasure Hunt</a><div class="clearAll spacer5"></div>Be a pirate and compete against others pirates to earn lots of treasure items - LIVE!</div><div class="clearAll"></div></div><div class="clearAll"></div>';

hpContent['Music'] = '<div class="hpPromoCont"><div class="hpImgCont"><a href="http://www.ajabpremkigazabkahanimusic.ibibo.com" class="hpMusicBg hpBackstreetM" ></a></div><div class="hpDescCont" ><a href="http://www.ajabpremkigazabkahanimusic.ibibo.com" >Ajab Prem Ki Gazab Kahani</a><div class="clearAll spacer5"></div>Listen to smash hits of the movie. Become fan, link your mobile no. &amp; get free updates.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://www.risingrockstars.ibibo.com" class="hpMusicBg hpRisingrock" ></a></div><div class="hpDescCont" ><a href="http://www.risingrockstars.ibibo.com" >Rising Rock Stars</a><div class="clearAll spacer5"></div>Catch Rock Band Prayag, India\'s first Rising Rock Stars on ibibo.com. Your band could be next!</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://my.ibibo.com/music" class="hpMusicBg hpIsingerM" ></a></div><div class="hpDescCont" ><a href="http://my.ibibo.com/music" >Shakira</a><div class="clearAll spacer5"></div>Listen to the smash hits from her latest album \' She Wolf \'.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://www.tummilemusic.ibibo.com" class="hpMusicBg hpIkaraoke" ></a></div><div class="hpDescCont" ><a href="http://www.tummilemusic.ibibo.com" >Tum Mile</a><div class="clearAll spacer5"></div>Listen to smash hits of Tum Mile. Become a fan, link your mobile no. &amp; get free updates.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://www.kurbaanmusic.ibibo.com" class="hpMusicBg hpIbrocks" ></a></div><div class="hpDescCont" >								<a href="http://www.kurbaanmusic.ibibo.com" >Kurbaan</a><div class="clearAll spacer5"></div>Listen to smash hits of Kurbaan. Become a fan, link your mobile no. &amp; get free updates.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://kailasa.ibibo.com/" class="hpMusicBg hpKailashkher" ></a></div><div class="hpDescCont" >								<a href="http://kailasa.ibibo.com/" >Kailash kher</a><div class="clearAll spacer5"></div>Sing with Kailash Kher.							</div><div class="clearAll"></div></div><div class="clearAll"></div>';

hpContent['Talents'] = '<div class="hpPromoCont"><div class="hpImgCont"><a href="http://oasis.ibibo.com/" class="hpTalentBg hpOasis" ></a></div><div class="hpDescCont" ><a href="http://oasis.ibibo.com/" >OASIS, BITS Pilani Fest</a><div class="clearAll spacer5"></div>Participate in the BIG 4 events of OASIS: Rock, Dance, Fashion &amp; Short Film Contests Now.</div>							<div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://photos.ibibo.com/games/launchcompare" class="hpTalentBg hpCompareifresh" ></a></div><div class="hpDescCont" ><a href="http://photos.ibibo.com/games/launchcompare" >Compare iFresh Face Girls</a><div class="clearAll spacer5"></div>								Compare and choose your favorite iFreshFace. Challenge your friends to find a better face!</div><div class="clearAll"></div>						</div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://photos.ibibo.com/contest/index/ifreshface" class="hpTalentBg hpIfreshT" ></a></div><div class="hpDescCont" ><a href="http://photos.ibibo.com/contest/index/ifreshface" >									ibibo iFresh Face</a><div class="clearAll spacer5"></div>Girls, become models.<br/><br/></div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://ihunk.ibibo.com/" class="hpTalentBg hpIhunk" ></a></div><div class="hpDescCont" ><a href="http://ihunk.ibibo.com/" >iHunk</a><div class="clearAll spacer5"></div>Guys, become models.<br/><br/></div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://iportfolio.ibibo.com/" class="hpTalentBg hpIportfolio" ></a></div><div class="hpDescCont" ><a href="http://iportfolio.ibibo.com/" >iPortfolio</a><div class="clearAll spacer5"></div>Get your portfolio shot by a fashion photographer.</div><div class="clearAll"></div></div><div class="hpPromoCont"><div class="hpImgCont"><a href="http://photos.ibibo.com/ifashionphotographer2" class="hpTalentBg hpIphotographer" ></a></div><div class="hpDescCont" ><a href="http://photos.ibibo.com/ifashionphotographer2" >Samsung Ultra Touch iFashion Photographer</a><div class="clearAll spacer5"></div>Get your portfolio shot by a fashion photographer.</div><div class="clearAll"></div></div>';

function loadtabdata(d){
	try{
	if(navigator.appName=='Microsoft Internet Explorer'){
	hpId('Featured').setAttribute("className","tabdeSelected");
	hpId('Games').setAttribute("className","tabdeSelected");
	hpId('Music').setAttribute("className","tabdeSelected");
	hpId('Talents').setAttribute("className","tabdeSelected");	
	hpId(d).setAttribute("className","tabSelected");
	}else{
	hpId('Featured').setAttribute("class","tabdeSelected");
	hpId('Games').setAttribute("class","tabdeSelected");
	hpId('Music').setAttribute("class","tabdeSelected");
	hpId('Talents').setAttribute("class","tabdeSelected");	
	hpId(d).setAttribute("class","tabSelected");
	}
	if(navigator.appName=='Microsoft Internet Explorer'){ setTimeout("insertcontent('"+d+"')",200);	}
	else { setTimeout("insertcontent('"+d+"')",50); }
	}catch(err){}
}	

function insertcontent(cont) { hpId('Featured_main').innerHTML=hpContent[cont]; }

function Login(){
	try{
	hpId('usrErr').style.display = "none";
	hpId('passErr').style.display="none";
	var suc=0;
	var usrname = hpId('login').value;
	usrname=usrname.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' ');
	var pass = hpId('password').value;
	pass = pass.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' ');
	if(usrname=="username" || usrname==""){
		hpId('usrErr').style.display="block";
		suc = 1;
	}
	if(pass=="********" || pass==""){
		hpId('passErr').style.display="block";
		suc = 1;
	}
	if(usrname=="username" || usrname=="" ){
		hpId('login').focus();
	}
	else if(pass=="********" || pass==""){
		hpId('password').focus();
	}
	if(suc==0){
	document.loginIbibo.action = 'http://auth.ibibo.com/signin';
	} else { return false; }
	}catch(err){}
}

function csSub(csVal){ hpId('hpMoreMenu8').style.display = 'block'; }
function csSubOut(csVal){ try{hpId('hpMoreMenu8').style.display = 'none'; }catch(err){}}
/*function csSubTime(csVal){ try{setTimeout("csSubOut('"+csVal+"')", 3000);  }catch(err){}}
function csSubOver(csVal){ try{hpId(csVal).style.display = 'block'; }catch(err){}}*/	

function searchnow(element){
	try{
	var str = hpId(element).value;			
	if((str!="") && (str!="search on ibibo")){
		var user = hpId('usrSrch').value;
		if (user == '' )user = 0;			
			document.location.href="http://search.ibibo.com/all/1/?q="+URLEncode(str)+"&uname="+user;			
	}else{
		hpId(element).focus();
	}
	}catch(err){}
}

function URLEncode (clearString){
	try{
	var output = '';
	var x = 0;
	clearString = clearString.toString();
	var regex = /(^[a-zA-Z0-9_.]*)/;
	while (x < clearString.length) {
		var match = regex.exec(clearString.substr(x));
		if (match != null && match.length > 1 && match[1] != '') {
		output += match[1];
		x += match[1].length;
		} else {
		if (clearString[x] == ' ')
		output += '+';
		else {
			var charCode = clearString.charCodeAt(x);
			var hexVal = charCode.toString(16);
			output += '%' + ( hexVal.length < 2 ? '0' : '' ) + hexVal.toUpperCase();
		}
		x++;
		}
	}
	return output;
	}catch(err){}
}

function loadHpAd(){ hpId('hpAd').contentWindow.location.reload(false);
hpId('hpAd').style.background = 'none'; 
}

/*var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-10553751-1");
pageTracker._setDomainName("www.ibibo.com");
pageTracker._trackPageview();
} catch(err) {}*/


-->
