/*-------------------------------------------------------------------------------
	For ToolTip..........
-------------------------------------------------------------------------------*/

function tooltip(){
				
	$(".cal_div11").hover(	function() {
										//alert("in tooltip function");
				$this=$(this);
				var offset = $this.offset();
				var tLeft = offset.left;
			
				var tTop = offset.top;			//Getting the position of hovered Element.....
				var tTop=tTop;
				var tWidth = $this.width();
				var tHeight = $this.height();
				
				$dthis=$("#calBG");
				var doffset=$dthis.offset();
				var dLeft= doffset.left;
				var dTop= doffset.top;
				//alert(dLeft);
				//alert(dTop);
				tLeft=parseInt(tLeft)-parseInt(dLeft);
				tTop=parseInt(tTop)-parseInt(dTop);
				tLeft=parseInt(tLeft)+10;
				tTop=parseInt(tTop)+57;
				var left_align=tLeft+"px";
				var top_pos = tTop+"px";
				//alert(top_pos);
				//alert(left_align);
			
				document.getElementById("tool").style.left=left_align;
				document.getElementById("tool").style.top=top_pos;
				
					//$(".event_detail").css({display: "block"});
					$(".event_detail").show("slow");
					var eve_id=$(this).attr("id");
					var s=new String(""+eve_id);
					var temp=s.split('_');
					eve=parseInt(temp[1]);
					var date_val=eve;
				//	alert(eve_id);
					
					$.post("CAL/event_descrip.php", {event_id: date_val},function(data)
											  {
												  
												  $(".event_detail").html(data);
												 
											
											});
				return false;
											
				$('.event_detail').mouseover(function() {  $('.event_detail').css({display:"block"}) }).mouseout(function() {   $('.event_detail').css({display:"none"}); $(".event_detail").html(""); });				
				}, 
									function() {	
													
												
												
												
												$('.event_detail').mouseout(function() {  $('.event_detail').css({display:"none"}) });
												
													//$(".event_detail").hide("slow");	  
												
												}
												
									);

}		// End Of Hover Function.........
	

function login_option()
{
	
	
	//alert("in login function");
	var str1="";
	str1+='<div class="option_container" id="o_container" style"height:300px; width:500px; margin:300px;"><div class="add_poll"> <a href="#"> <h3>Add Poll</h3> </a> </div> <div class="arr_writeup"> <a href="#"><h3> Add Write up</h3> </a> </div><div class="close"> Close </div> </div> '; 
	$("#f_container").replaceWith(str1);
	$(".option_container").show("slow");
	
}	// END OF FUNCTION LOGIN OPTION.......


////////////////////////////Start Silver Login Function here......./////////////////////////////

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}







/////////////////////////FOor Logged in User this will open directly //////////////////////////////////

function mypicUpload(id){
	//alert('add me fav function ');
	var br=navigator.appName;
	if(br=="Microsoft Internet Explorer"){
		//alert('contribution me');		"check_favorite.php?id="+id+"&type="+type+"&uid="+auth_id;
		
		
$(document.body).append("<div class='login_container' id='lcontainer' style='background-color:#000;width:100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height:2200px;filter: alpha(opacity = 30);'/><div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;left:312px;top:50.33px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img border='0' alt='close' title='close' id='close' src='images/lightbox/popCloseDot.png' /><div class='topInfo'>Sign into Live on Campus</div><form name='loginfrm' method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/Password Combination</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='passwd'/><div class='nxtLine'><input type='checkbox' class='remme' name='remme' id='remme'/><span style='font-size: 13px;'>Remember me on this computer</span></div></div><div class='loginBtn' style='float: right; padding-right: 32px;'><input type='image' src='images/lightbox/signin_button.png' id='addMe_submit'/></div></div></div></form>/div></div></div>");	
//alert('inbr2');
	
	}
	else{
		//alert('mozieal');
	$(document.body).append("<div class='login_container' id='lcontainer' style='background-color:#000;opacity: 0.8; width: 100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height: 1800px;'/><div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;top:0px;left:0px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'>Sign into Live on Campus</div><form name='loginfrm'  method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/Password Combination</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='passwd'/><div class='nxtLine'><input type='checkbox' class='remme' name='remme' id='remme'/><span style='font-size: 13px;'>Remember me on this computer</span></div></div><div class='loginBtn' style='float: right; padding-right: 32px;'><input type='image' src='images/lightbox/signin_button.png'  id='mypic_upload'/></div></div></div></form></div></div></div>");
				var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginLeft=W+"px";
				document.getElementById("f_container").style.marginTop=H+"px";
	
	}
	
	document.getElementById("lcontainer").style.width="100%";
}












function silver_screen_test(enable,name)
{
	
	//p_id=poll_id;
	//opt_id=op_id;
	//alert(p_id+"  poll_id");
	//alert("option_id  "+opt_id);
	var os=navigator.platform;
	var br=navigator.appName;
	//alert(br);
	if(os=="Win32")
	{	
			//var wth=document.documentElement.clientWidth;
			var hgt=document.documentElement.clientHeight;
			
			//var wth=document.body.offsetWidth;
			var hgt1=document.body.offsetHeight;		// For Setting height of silver Screen onload  by default....
		//alert(wth);
		//alert(hgt);
	}
	else{
			var hgt=window.innerHeight;
			var wth=window.innerWidth;
		}
	
	//var mr=parseInt((hgt)/4) +parseInt(wth)/6;
	//alert(mr);
	//alert("window height"+hgt);
	//alert("window width" +wth);
	var mr_left=0;
	var mr_top=0;
	var mr_left=parseInt(wth)/2.7;
	
	var mr_top=parseInt(hgt)/3;
	mr_left+="px";
	mr_top+="px";
	if(os=="Win32")
	{
		hgt= hgt1+"px";
	}
	else
	{
		hgt+="px";
	}
	wth+="px";
	//alert(mr_left);
	//alert(mr_top);
	//alert(elm_click);
	
	///////////////* this is the first screen asking userid and password *//////////////////
	
	

	if(enable==1){
		contribution(br,name);	
	}else{
	//alert('else');
	if(br=="Microsoft Internet Explorer"){

	/*var str="";
	str +="<div class='login_container' id='lcontainer' style='background-color:#000;width: 100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height: 1800px;filter: alpha(opacity = 30);'>";*/
$(document.body).append("<div class='login_container' id='lcontainer' style='background-color:#000;width:100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height:1800px;filter: alpha(opacity = 30);'/><div class='popCont' id='f_container' style='width:527px;position: absolute; display: block;z-index: 102;left:312px;top:50.33px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img border='0' alt='close' title='close' id='close' src='images/lightbox/popCloseDot.png' /><div class='topInfo'>Sign into Live on Campus</div><form name='loginfrm' method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/Password Combination</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='passwd'/><div class='nxtLine'><input type='checkbox' class='remme' name='remme' id='remme'/><span style='font-size: 13px;'>Remember me on this computer</span></div></div><div class='loginBtn' style='float: right; padding-right: 32px;'><input type='image' src='images/lightbox/signin_button.png' id='logenter'/></div></div><div class='lastInfo'><span style='padding-left:10px'><a title='' href='#'><img border='0' src='images/lightbox/fpass_button.png' id='fPass'/></a><span style='padding-left:390px'><a title='' href='loc.php?type=signup'><img border='0' id='signup' src='images/lightbox/signup_button.png'/></a></span></div></div></form>/div></div>");	
//alert('inbr2');
	
	}
	else{
		//alert('mozieal');
	$(document.body).append("<div class='login_container' id='lcontainer' style='background-color:#000;opacity: 0.8; width: 100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height: 1800px;'/><div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;top:0px;left:0px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'>Sign into Live on Campus</div><form name='loginfrm'  method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/Password Combination</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='passwd'/><div class='nxtLine'><input type='checkbox' class='remme' name='remme' id='remme'/><span style='font-size: 13px;'>Remember me on this computer</span></div></div><div class='loginBtn' style='float: right; padding-right: 32px;'><input type='image' src='images/lightbox/signin_button.png'  id='logenter'/></div></div><div class='lastInfo'><span style='padding-left:10px'><a title='' href='#'><img border='0' src='images/lightbox/fpass_button.png' id='fPass'/></a><span style='padding-left:390px'><a title='' href='loc.php?type=signup'><img border='0' id='signup' src='images/lightbox/signup_button.png'/></a></span></div></div></form></div></div></div>");
				var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginLeft=W+"px";
				document.getElementById("f_container").style.marginTop=H+"px";
	
	}
	//url(lightbox.png) top no-repeat;

//	jQuery("#lcontainer").append(login_str);
	//alert(wth);
	//alert(hgt);
	//document.getElementById("lcontainer").style.width=wth;
	document.getElementById("lcontainer").style.width="100%";

	 //$("#f_container").css( { top: mr_top});
	} //End else contribution function calling///////////////////


}		

////////////////////////////End of Silver Login Function here......./////////////////////////////




















/////////////////////////////////remove_login function start here//////////////////////////////////


function remove_login(){
					
					$(".login_container").remove();
					// Wrtie $("#id").click(function(){ $(".class" or "#id").remove(); or slideUp("slow");
				}
				

/////////////////////////FOor Logged in User this will open directly //////////////////////////////////

function contribution(br,name){
	if(br=="Microsoft Internet Explorer"){
		//alert('contribution me');
		$(document.body).append("<div class='login_container' id='lcontainer' style='background-color:#000;width:100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height:2200px;filter: alpha(opacity = 30);'/><div class='popCont' id='f_container' style='width:527px;position: absolute; display: block;z-index: 102;left:312px;top:50.33px'><div class='popTop' style='background:url(images/lightbox/popTopCurve.png);'></div><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='popBG' style='background:url(images/lightbox/popBG.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;min-height:270px'><div class='welcomeNote' style='padding-top:15px'>Welcome back "+name+" !</div><div class='imgWrapper'><div class='wrtUp'><a href='post_article.php'><img src='images/lightbox/wrtUp.png' border='0' alt='' title=''/></a></div><div class='plus'><img src='images/lightbox/plus.png' border='0' alt='' title=''/></div><div class='poll'><a href='post_poll.php'><img src='images/lightbox/poll.png' border='0' alt='' title=''/></a></div></div></div></div></div>");
	}else{
$(document.body).append("<div class='login_container' id='lcontainer' style='background-color:#000;opacity: 0.8; width: 100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height: 1800px;'/><div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;top:0px;left:0px'><div class='contyb_Bd'><div class='left_corner'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/>	</div><div class='center_content'><div class='welcomeNote'> Welcome back "+name+" ! </div><div class='wrtUp'> <a href='post_article.php'><img src='images/lightbox/wrtUp.png'  border='0' title='write up' alt='Create a poll' /></a></div><div class='event'> <a href='post_event.php'> <img src='images/lightbox/addevent.png' border='0' title='event' alt='Add a poll' /></a></div><div class='poll'> <a href='post_poll.php'> <img src='images/lightbox/poll.png' border='0' title='poll' alt='Create a poll' /></a></div></div><div class='right_corner'></div></div></div>");
	//document.getElementById("lcontainer").style.width="100%";	
	var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginLeft=W+"px";
				document.getElementById("f_container").style.marginTop=H+"px";
	}
	
	
}

function addthismsg(){
	//alert('at function');MacIntel
	var br=navigator.appName;
	var os=navigator.platform;
	 //alert(br);
	//alert(os);
	if(os=="Win32" && br=="Microsoft Internet Explorer"){
		
		//alert('hi');
		$(document.body).append("<div class='addthis_container' id='athiscontainer' style='background-color:#000;width:100%; left: 0px; top: 0px; z-index: 1000000; display: block; position: absolute; height:2200px;filter: alpha(opacity = 30);opacity: 0.3' onclick=\"addthis_close_tous(this.className)\"/><div class='addthisBox' id='addthisBox' style='width: 321px; height: 450px;position:fixed; display: block;z-index: 1000000;top:0;left:50%;margin-left:-155px;top:0px;' onclick=\"addthis_close_tous(this.className)\"><div class='shrFrnds'>Share your article with friends</div></div>");
	addthis_sendto();
	}else if(os=="Win32" && br=="Netscape"){
		addthis_sendto();
		$(document.body).append("<div class='addthis_container' id='athiscontainer' style='background-color:#000;width:100%; left: 0px; top: 0px; z-index: 1000000; display: block; position: absolute; height:1800px;opacity: 0.3' onclick=\"addthis_close_tous(this.className)\"/><div class='addthisBox' id='addthisBox' style='width: 321px; height: 450px;position:fixed; display: block;z-index: 1000000;left:50%;margin-left:-155px;top:35px' onclick=\"addthis_close_tous(this.className)\"><div class='shrFrnds'>Share your article with friends</div></div>");
	
	}else{
		addthis_sendto();
		$(document.body).append("<div class='addthis_container' id='athiscontainer' style='background-color:#000;width:100%; left: 0px; top: 0px; z-index: 1000000; display: block; position: absolute; height:1800px;opacity: 0.3' onclick=\"addthis_close_tous(this.className)\"/><div class='addthisBox' id='addthisBox' style='width: 321px; height: 450px;position:fixed; display: block;z-index: 1000000;top:0;left:50%;margin-left:-155px;' onclick=\"addthis_close_tous(this.className)\"><div class='baseclrShr'><div class='shrFrnds'>Share your article with friends</div></div></div>");

	}

	
}
//if (this.className==\'login_container\') {addthis_close_tous(this.className)}
function addthis_close_tous(class_name){
	if(class_name != 'addthisBox' ){
		$("#athiscontainer").remove();$("#addthisBox").remove();document.getElementById("at16p").style.display="none";document.getElementById("at16lb").style.display="none";
	}
}

function addMeFav(selid,selfav,uid){
	//alert('add me fav function ');
	var br=navigator.appName;
	if(br=="Microsoft Internet Explorer"){
		//alert('contribution me');		"check_favorite.php?id="+id+"&type="+type+"&uid="+auth_id;
		
		
$(document.body).append("<div class='login_container' id='lcontainer' style='background-color:#000;width:100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height:2200px;filter: alpha(opacity = 30);'/><div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;left:312px;top:50.33px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img border='0' alt='close' title='close' id='close' src='images/lightbox/popCloseDot.png' /><div class='topInfo'>Sign into Live on Campus</div><form name='loginfrm' method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/Password Combination</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='passwd'/><input type='hidden' name='selid' value='"+selid+"' id='selid'/><input type='hidden' name='selfav' value='"+selfav+"' id='selfav'/><input type='hidden' name='uid' value='"+uid+"' id='uid'/><div class='nxtLine'><input type='checkbox' class='remme' name='remme' id='remme'/><span style='font-size: 13px;'>Remember me on this computer</span></div></div><div class='loginBtn' style='float: right; padding-right: 32px;'><input type='image' src='images/lightbox/signin_button.png' id='addMe_submit'/></div></div><<div class='lastInfo'><span style='padding-left:10px'><a title='' href='#'><img border='0' src='images/lightbox/fpass_button.png' id='fPass'/></a><span style='padding-left:390px'><a title='' href='loc.php?type=signup'><img border='0' id='signup' src='images/lightbox/signup_button.png'/></a></span></div>/div></form>/div></div></div>");	
//alert('inbr2');
	
	}
	else{
		//alert('mozieal');
	$(document.body).append("<div class='login_container' id='lcontainer' style='background-color:#000;opacity: 0.8; width: 100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height: 1800px;'/><div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;top:0px;left:0px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'>Sign into Live on Campus</div><form name='loginfrm'  method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/Password Combination</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='passwd'/><input type='hidden' name='selid' value='"+selid+"' id='selid'/><input type='hidden' name='selfav' value='"+selfav+"' id='selfav'/><input type='hidden' name='uid' value='"+uid+"' id='uid'/><div class='nxtLine'><input type='checkbox' class='remme' name='remme' id='remme'/><span style='font-size: 13px;'>Remember me on this computer</span></div></div><div class='loginBtn' style='float: right; padding-right: 32px;'><input type='image' src='images/lightbox/signin_button.png'  id='addMe_submit'/></div></div><div class='lastInfo'><span style='padding-left:10px'><a title='' href='#'><img border='0' src='images/lightbox/fpass_button.png' id='fPass'/></a><span style='padding-left:390px'><a title='' href='loc.php?type=signup'><img border='0' id='signup' src='images/lightbox/signup_button.png'/></a></span></div></div></form></div></div></div>");
				var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginLeft=W+"px";
				document.getElementById("f_container").style.marginTop=H+"px";
	
	}
	
	document.getElementById("lcontainer").style.width="100%";
}

/////////////////WE love loc function /////////////
function weloveloc(id) {
$.post("weloveloc_ajax.php", {id: id },function(data)
											  {
												 if(data =="0")
												  {
													 
													alert('Sorry we dont have this information, please write to us at admin@liveoncampus.com');
												  }
												  else
												  {
													  $(document.body).append("<div id='welovecont' style='background-color:#000;width:100%; left: 0px; top: 0px; z-index: 101; display: block; position: absolute; height:1800px;opacity:0.3;filter: alpha(opacity = 30);'/>"+data+"");
             											//$('#f_container').show();
													   
												  }
											
											});



}

//////////////////Eye menu function ends here///////////////////

$(document).ready(function() 
{
	
	
	var op_sys=navigator.platform;
	var browser_name=navigator.appName;

	
	if(op_sys=="Win32" || browser_name=="Microsoft Internet Explorer")
	{
			
		$("#logenter").live("click",function()
						 { 
								var u_name=$("input#username").val();
								var passwd=$("input#passwd").val();
								//alert(u_name);
								//alert(passwd);
										if(u_name=="" || u_name==null)
											{
												alert("Enter your User ID");
												return false;
											}
											if(passwd=="" ||passwd==null)
											{
												alert("Please enter your password");
												return false;
											}
		$.post("check_validation.php", {username: u_name, password: passwd },function(data)
											  {
												  //alert(data);
												 if(data =="0")
												  {
													 
													  document.getElementById("errMsg").style.display="block";
													 // $("#f_container").append("Wrong User Name Or Password");
													  document.getElementById("username").value='';
													  document.getElementById("passwd").value='';
												  //$("#f_container").html(data);
												  }
												  else
												  {
													  //alert("else data"); 
													    $("#f_container").html(" ");
													    $("#f_container").append("<div class='popCont' id='f_container' style='width:527px;'><div class='popTop' style='background:url(images/lightbox/popTopCurve.png);'></div><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='popBG' style='background:url(images/lightbox/popBG.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;min-height:270px'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='welcomeNote'>Welcome back "+data+" !</div><div class='imgWrapper'><div class='wrtUp'><a href='post_article.php'><img src='images/lightbox/wrtUp.png' border='0' alt='' title=''/></a></div><div class='plus'><img src='images/lightbox/plus.png' border='0' alt='' title=''/></div><div class='poll'><a href='post_poll.php'><img src='images/lightbox/poll.png' border='0' alt='' title=''/></a></div></div></div></div></div>");
													   
												  }
											
											});
				return false;
											
											});
	}
	else{
	$("#logenter").live("click",function()
		{
			//alert("In Submit Function  "+p_id);
			var u_name=$("input#username").val();
			var passwd=$("input#passwd").val();
			//var name=$("input[@type='hidden']#fname").val();
			//alert(name);
			if(u_name=="" || u_name==null)
											{
												alert("Enter Your User ID");
												return false;
											}
											if(passwd=="" ||passwd==null)
											{
												alert("Please enter your password");
												return false;
											}
		$.post("check_validation.php", {username: u_name, password: passwd },function(data)
											  {
												 //alert('coming right here');
												 //alert(data);
												  if(data=="0")
												  {
													  document.getElementById("errMsg").style.display="block";
													 // $("#f_container").append("Wrong User Name Or Password");
													  document.getElementById("username").value='';
													  document.getElementById("passwd").value='';
												  //$("#f_container").html(data);
												  }
												  else
												  {
													   $("#f_container").html(" ");
													    $("#f_container").replaceWith("<div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;top:0px;left:0px'><div class='popBG' style='background:url(images/lightbox/popBG.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;min-height:270px'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='welcomeNote'>Welcome back "+data+" !</div><div class='imgWrapper'><div class='wrtUp'><a href='post_article.php'><img src='images/lightbox/wrtUp.png' border='0' alt='' title=''/></a></div><div class='plus'><img src='images/lightbox/plus.png' border='0' alt='' title=''/></div><div class='poll'><a href='post_poll.php'><img src='images/lightbox/poll.png' border='0' alt='' title=''/></a></div></div></div></div></div>");
													   
					var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginLeft=W+"px";
				document.getElementById("f_container").style.marginTop=H+"px";								   
												  }
												  
											});
				return false;
			
		});
		
	}
// Signing Up  Function.................



	

	if(op_sys=="Win32" || browser_name=="Microsoft Internet Explorer")
	{
			
		$("#signup_submit").live("click",function()
						 { 
								//alert("signup_submit");
								var act="a";
								var u_name=$("input#signup_email").val();
								var passwd=$("input#password2").val();
								var tc=document.getElementById('t_c').checked;
								//alert(document.getElementById('t_c').checked);
								//alert(tc);
								//alert(u_name+passwd);
										if(u_name=="" || u_name==null)
											{
												alert("Enter Your email id");
												return false;
											}
											if(passwd=="" ||passwd==null)
											{
												alert("Set your Password for LOC");
												return false;
											}
											if(tc=="0" || tc=='false')
											{
												alert("Please tick terms and condition");
												return false;
											}
											if(u_name!=null){
														var t = echeck(u_name);
														if(t=="false"|| t=="0"){
															return false;
														}
														
											}
		$.post("signup_second.php", {username: u_name, password: passwd, action: act },function(data)
											  {
												  //alert(data);
												  if(data=="0")
												
												  {
													  
													  document.getElementById("errMsg").style.display="block";
													  document.getElementById("password2").value='';
													 // $("#f_container").append("Wrong User Name Or Password");
													//  document.getElementById("username").value='';
													//  document.getElementById("passwd").value='';
														
												 		//$("#f_container").html(data);
												  }
												  else
												  {
													  $("#f_container").html(" "); 
													$(".login_container").html("<div class='instmsgBlock'><div class='leftmsg' style='background:transparent url(images/lightbox/ImsgleftCornr.png) no-repeat scroll left top;'></div><div class='midmsg' style='background:transparent url(images/lightbox/ImsgcntrCornr.png) repeat-x scroll left top;'>Check Your email to activate your profile</div><div class='botmsg' style='background:transparent url(images/lightbox/ImsgrytCornr.png) no-repeat scroll right top;'>");
													  setTimeout('$(".login_container").fadeOut("slow");', 5000); 
													  location.reload(true);
												  }
											
											});
				return false;
											
											});
	}
	else{
	$("#signup_submit").live("click",function()
		{
			//alert("sing up Submit Function  ");
			//alert("in Mozzilla");
			var u_name=$("input#signup_email").val();
			var passwd=$("input#password2").val();
			//var tc=$("input[@name='option_layout']:checked").val()
			var tc=document.getElementById('t_c').checked;
			var act="a";
			//alert(u_name);
			//alert(tc);
			
			if(u_name=="" || u_name==null)
											{
												alert("Enter Your Email Id");
												return false;
											}
											if(passwd=="" ||passwd==null)
											{
												alert("Set your Password for LOC");
												return false;
											}
											if(tc=="0" || tc=='false')
											{
												alert("Please tick terms and condition");
												return false;
											}
											if(u_name!=null){
														var t = echeck(u_name);
														if(t=="false"|| t=="0"){
															return false;
														}
											}
		$.post("signup_second.php", {username: u_name, password: passwd, action: act },function(data)
											  {
												 //alert(data);
												  if(data=="0")
												  {
													  //alert(data[0]);
														//alert(data[1]);
													  document.getElementById("errMsg").style.display="block";
													 // $("#f_container").append("Wrong User Name Or Password");
													  //document.getElementById("signup_user_login").value='';
													  document.getElementById("password2").value='';
												  //$("#f_container").html(data);
												  }
												  else
												  {	
												  		//alert(data[0]);
														//alert(data[1]);
														$("#lcontainer").html(" ");
														$("#f_container").html(" ");
													$(".login_container").html("<div class='instmsgBlock'><div class='leftmsg' style='background:transparent url(images/lightbox/ImsgleftCornr.png) no-repeat scroll left top;'></div><div class='midmsg' style='background:transparent url(images/lightbox/ImsgcntrCornr.png) repeat-x scroll left top;'>Check Your email to activate your profile</div><div class='botmsg' style='background:transparent url(images/lightbox/ImsgrytCornr.png) no-repeat scroll right top;'>");
													  setTimeout('$(".login_container").fadeOut("slow");', 5000); 
													  location.reload(true);
													  // Do the header Redirection here
												  }
												  
											});
				return false;
			
		});


		
	}
		
		// End OF Signup Function.....
		

///////////////////////////////////////////////Start of Forget Password //////////////////////////////////
function echeck(str) {
									var at="@"
									var dot="."
									var lat=str.indexOf(at)
									var lstr=str.length
									var ldot=str.indexOf(dot)
									if (str.indexOf(at)==-1){
									alert("Invalid E-mail ID")
									return false
									}
									if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
									alert("Invalid E-mail ID")
									return false
									}
									if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
									alert("Invalid E-mail ID")
									return false
									}
									if (str.indexOf(at,(lat+1))!=-1){
									alert("Invalid E-mail ID")
									return false
									}
									if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
									alert("Invalid E-mail ID")
									return false
									}
									if (str.indexOf(dot,(lat+2))==-1){
									alert("Invalid E-mail ID")
									return false
									}
									if (str.indexOf(" ")!=-1){
									alert("Invalid E-mail ID")
									return false
									}
									return true
								}
								


	if(op_sys=="Win32" || browser_name=="Microsoft Internet Explorer")
	{
			
		$("#fPass_submit").live("click",function()
						 { 
								var u_name=$("input#username").val();
								//var passwd=$("input#passwd").val();
								//alert(u_name);
								
								
								
								
								//alert(passwd);
										if(u_name=="" || u_name==null)
											{
												alert("Enter your User ID");
												return false;
											}else{
												echeck(u_name);
											}
											
											
		$.post("forgetpass.php", {username: u_name},function(data)
											  {
												 if(data == 0)
													{
														 
														document.getElementById("errMsg").style.display="block";
														document.getElementById("username").value='';
													}
												 else
												 {
													$("#lcontainer").html(" ");
													$("#f_container").html(" ");
													$(".login_container").html("<div class='instmsgBlock'><div class='leftmsg' style='background:transparent url(images/lightbox/ImsgleftCornr.png) no-repeat scroll left top;'></div><div class='midmsg' style='background:transparent url(images/lightbox/ImsgcntrCornr.png) repeat-x scroll left top;'>Password has sent to your mail ID</div><div class='botmsg' style='background:transparent url(images/lightbox/ImsgrytCornr.png) no-repeat scroll right top;'>");
													  setTimeout('$(".login_container").fadeOut("slow");', 4000); 
													  location.reload(true);
													   
												 }
											
											});
				return false;
											
											});
	}
	else{
	$("#fPass_submit").live("click",function()
		{
			//alert("In Submit Function  "+p_id);
			var u_name=$("input#username").val();
			if(u_name=="" || u_name==null)
			{
				alert("Enter Your User ID");
				return false;
			}else{
				//echeck(u_name);
			}
			
		$.post("forgetpass.php", {username: u_name },function(data)
											  {
												 //alert('coming right here');
												 //alert(data);
												  if(data=="0")
												  {
													 document.getElementById("errMsg").style.display="block";
													 document.getElementById("username").value='';
												}
												  else
												  {
													   $("#lcontainer").html(" ");
														$("#f_container").html(" ");
													$(".login_container").html("<div class='instmsgBlock'><div class='leftmsg' style='background:transparent url(images/lightbox/ImsgleftCornr.png) no-repeat scroll left top;'></div><div class='midmsg' style='background:transparent url(images/lightbox/ImsgcntrCornr.png) repeat-x scroll left top;'>Password has sent to your mail ID</div><div class='botmsg' style='background:transparent url(images/lightbox/ImsgrytCornr.png) no-repeat scroll right top;'>");
													  setTimeout('$(".login_container").fadeOut("slow");', 4000); 
													   location.reload(true);
													   
													   
												  }
												  
											});
				return false;
			
		});
		
	}
////////////////////////////////////End of Forget Password ////////////////////////////////////////



	
	tooltip(); // Generating tooltip.......	
		
			if(browser_name=='Microsoft Internet Explorer'){  
				$("#signup").live("click", function(){
							//alert('in IE');
							  $("#f_container").replaceWith("<div class='popCont' id='f_container' style='width:527px;position:absolute;top:0px;z-index:102;left:312px;top:50.33px'><div class='popTop' style='background:url(images/lightbox/popTopCurve.png);'></div><div class='popBG' style='background:url(images/lightbox/popBG.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;min-height:270px'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'> Setup Your Account</div><form method='post' id='crtacc_form' name='crtacc'><div id='errMsg' style='display:none'><h2>Email ID already exist or your email is not verified</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>Email ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='signup_email'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='password2'/><div class='nxtLine'><input type='checkbox' class='remme' name='terms_cond' id='t_c' checked='checked'/><span style='font-size: 13px;'>I accept the terms and conditions <a href='#'onclick=\"MM_openBrWindow('tips/termscond.html','ContributorsTips','scrollbars=yes,width=420,height=400')\">click here</a></span></div></div><div class='lastInfo'><span style='float:right;'><a href='#' title=''><img border='0' src='images/lightbox/signin_eye.png' id='signin'/></a></span><input type='image' style='float:right; padding-right:160px;' id='signup_submit' src='images/lightbox/crtAcc_button.png'/><span style='padding-left: 10px;'><a href='#' title=''><img border='0' src='images/lightbox/fpass_button.png' id='fPass'/></a></span></div></div></form></div></div></div>");
							return false;
											
											});
	}else{
		$("#signup").live("click", function(){
					
										 	//alert('signup');
										 $("#f_container").html(" ");
										 $("#f_container").replaceWith("<div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;top:0px;left:0px'><div class='popBG' style='background:url(images/lightbox/popBG.png)'><div class='popContentArea' id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;min-height:270px'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'> Setup Your Account</div><form method='post' name='crtacc'><div id='errMsg' style='display:none'><h2>Email ID already exist or your email is not verified</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>Email ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='signup_email'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='password2'/><div class='nxtLine'><input type='checkbox' class='remme' name='terms_cond' id='t_c' checked='checked'/><span style='font-size: 13px;'>I accept the terms and conditions <a href='#' onclick=\"MM_openBrWindow('tips/termscond.html','ContributorsTips','scrollbars=yes,width=420,height=400')\">click here</a></span></div></div><div class='lastInfo'><span style='float:right;'><a href='#' title=''><img border='0' src='images/lightbox/signin_eye.png' id='signin'/></a></span><input type='image' style='float:right; padding-right:160px;' id='signup_submit' src='images/lightbox/crtAcc_button.png'/><span style='padding-left: 10px;'><a href='#' title=''><img border='0' src='images/lightbox/fpass_button.png' id='fPass'/></a></span></div></div></form></div></div></div>");
				var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginLeft=W+"px";
				document.getElementById("f_container").style.marginTop=H+"px";	 
							//alert("signu");			 
				
				
						});
		
			}
		
/////////////////////////////////////////Sign In function start from Here complete sign in form///////////////////////////////////////////		
		
	if(browser_name=='Microsoft Internet Explorer'){
		$("#signin").live("click", function(){
	 	//alert(" in signin");
				 $("#f_container").replaceWith("<div class='popCont' id='f_container' style='width:527px;position:absolute;top:0px;z-index:102;left:312px;top:50.33px'><div class='popTop' style='background:url(images/lightbox/popTopCurve.png);'></div><div class='popBG' style='background:url(images/lightbox/popBG.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;min-height:270px'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'>Sign into Live on Campus</div><form name='loginfrm'  method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/Password Combination</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='passwd'/><div class='nxtLine'><input type='checkbox' class='remme' name='remme' id='remme'/><span style='font-size: 13px;'>Remember me on this computer</span></div></div><div class='lastInfo'><span style='float:right;'><a href='loc.php?type=signup' title=''><img border='0' src='images/lightbox/signup_button.png' id='signup'/></a></span><input type='image' style='float:right; padding-right:160px;' id='logenter' src='images/lightbox/signin_button.png'/><span style='padding-left: 10px;'><a href='#' title=''><img border='0' src='images/lightbox/fpass_button.png' id='fPass'/></a></span></div></div></form></div></div></div>");
								 
							//alert("signu");			 
										 });
				
	}else{
		
		$("#signin").live("click", function(){
	
	
										 
										 	//alert(" in signin");
										 $("#f_container").html(" ");
										 $("#f_container").replaceWith("<div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;top:0px;left:0px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'>Sign into Live on Campus</div><form name='loginfrm'  method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/Password Combination</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='loginp clearfix'><div class='label'>Password : </div><input type='password' size='28' class='inputpassword' name='pswd' id='passwd'/><div class='nxtLine'><input type='checkbox' class='remme' name='remme' id='remme'/><span style='font-size: 13px;'>Remember me on this computer</span></div></div><div class='lastInfo'><span style='float:right;'><a href='loc.php?type=signup' title=''><img border='0' src='images/lightbox/signup_button.png' id='signup'/></a></span><input type='image' style='float:right; padding-right:160px;' id='logenter' src='images/lightbox/signin_button.png'/><span style='padding-left: 10px;'><a href='#' title=''><img border='0' src='images/lightbox/fpass_button.png' id='fPass'/></a></span></div></div></form></div></div></div>");
				var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginLeft=W+"px";
				document.getElementById("f_container").style.marginTop=H+"px";	 
										 });
		
		
	}
	
/////////////////////////////////////////Sign In function End Here complete sign in form///////////////////////////////////////////	


/////////////////////////////////////////Start forget Password form start here///////////////////////////////////////////	

	if(browser_name=='Microsoft Internet Explorer'){
		$("#fPass").live("click", function(){
	 	//alert(" in forget pass");
				 $("#f_container").replaceWith("<div class='popCont' id='f_container' style='width:527px;position:absolute;top:0px;z-index:102;left:312px;top:50.33px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'>Forget your Password??</div><form name='loginfrm'  method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/UserID</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='lastInfo' style='padding-top:60px;'><span style='float:right;'><a href='#' title=''><img border='0' src='images/lightbox/signin_eye.png' id='signin'/></a></span><input type='image' style='float:right; padding-right:160px;' id='fPass_submit' src='images/lightbox/signin_button.png'/><span style='padding-left: 10px;'><a href='loc.php?type=signup' title=''><img border='0' src='images/lightbox/signup_button.png' id='signup'/></a></span></div></div></form></div></div></div>");
								 
							//alert("signu");			 
										 });
				
	}else{
		
		$("#fPass").live("click", function(){
	
	
										 
										 	//alert(" in forget pass mozila");
										 $("#f_container").html(" ");
										 $("#f_container").replaceWith("<div class='popCont' id='f_container' style='width:527px;position: fixed; display: block;z-index: 102;top:0px;left:0px'><div class='popBG' style='background:url(images/lightbox/popBGSmall.png)'><div class='popContentArea'  id='cngContId' style='background:url(images/lightbox/popEyeSmallBG.png) no-repeat;width:100%;'><img src='images/lightbox/popCloseDot.png' border='0' alt='close' title='close' id='close'/><div class='topInfo'>Forget your Password??</div><form name='loginfrm'  method='POST'><div id='errMsg' style='display:none'><h2>Incorrect Email/UserID</h2></div><div class='fake' id='l_fake'><div class='loginp clearfix'><div class='label'>LOC ID   : </div> <input type='text' size='28' class='inputtext' name='username' id='username'/><div class='nxtLine'>(e.g. username@domain.com)</div></div><div class='lastInfo' style='padding-top:60px;'><span style='float:right;'><a href='#' title=''><img border='0' src='images/lightbox/signin_eye.png' id='signin'/></a></span><input type='image' style='float:right; padding-right:160px;' id='fPass_submit' src='images/lightbox/signin_button.png'/><span style='padding-left: 10px;'><a href='loc.php?type=signup' title=''><img border='0' src='images/lightbox/signup_button.png' id='signup'/></a></span></div></div></form></div></div></div>");
				var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginLeft=W+"px";
				document.getElementById("f_container").style.marginTop=H+"px";	 
										 });
		
		
	}
	
	
////////////////////////////////////End forget password form///////////////////////////////////	
	
	/*$("#vrtAlign").click(function()
					{
						//alert("hello");
						
					  silver_screen(); 
					  $(".form_container").show("slow");
					  
					  //$(".login_container").hide("slow");
								 
					 });
	
	$(".close_log").live("click",function()
					{
						
						//$(".login_container").slideUp("slow");
						//alert("checking for login in close_log");
							alert("another option jhelo");
								login_option();				
						//setTimeout('$(".login_container").remove();', 500);	
					
						
					});
	
	//alert("checking for login");
	
	$("#close").live("click",function()
			{
						alert("checking for login in close");
					$(".login_container").slideUp("slow");
					setTimeout('$(".login_container").remove();', 500);
			});
	
	
	
	
	// FOR SHARE YOUR WORK PAGE...........
	
	$("#share").click(function(){
							   		 //silver_screen();
									 $(".form_container").show("slow");
									 $(".form_container").append(signup);
							   });
	
		
	}*/
		
	//01-june-09 at 18PM
	
	/*$("#share_work").click(function(){
									alert('hi');
							   		 silver_screen_test(enable);
									
							   });
						*/
					
	$("#close_hotline").live("click",function()
			{
				$("#banner_hotline").remove();
			});
	$("#close").live("click",function()
			{
					//alert("checking for login in close");
					location.reload(true);
					setTimeout('$("#f_container").remove();', 200);
					setTimeout('$("#lcontainer").remove();', 300);$(".login_container").slideUp("slow");
					
			});
	
						
	$("#close_welove").live("click",function()
			{
				$("#welovecont").remove();
				$(".main_wlove").remove();
			});
	
	$(window).resize(function(){
		  var os=navigator.platform;
		  var br=navigator.appName;
  			if(br=="Microsoft Internet Explorer"){
				//alert("IE");
				//var H=window.innerHeight;
				//var W=window.innerWidth;
				//alert(H);
				//alert(W);
			}
			else{
				var H=window.innerHeight;
				var W=window.innerWidth;
				H = parseInt(H)/5;
				W = parseInt(W)/4;
				document.getElementById("f_container").style.marginTop=H+"px";
				document.getElementById("f_container").style.marginLeft=W+"px";
				
			}
  
  
	//document.getElementById("f_container").style.marginTop=mr_top;
});
	
	
	
	
	//////////////////////////////////Take Tour document dot ready functions//////////////////////////////////////////
	
	var whatwedo="";
whatwedo +='Live On Campus wants to spread its reach to as many colleges and campuses in the country and be one of kind media to connect tens of thousands of students all at once. We are a close&#45;knit community of thousands of students already and counting. So what do thousands of students do?<br /><br />We reach out and become a part of Live On Campus which is almost a movement. We are a fusion, a link, an attachment of all things and events that concern the youth. Live On Campus is a melting pot of culture, art, geography, ideas, cuisines, courses, gender, education level, societal structure, etc. It is an amalgamation.<br /><br />Hence, we endeavour to be a part of as many youth and students in the country as possible. Expressing, exploring and expanding are our objectives. And we can guarantee you, we stay true to our &#8216;words&#8217;.';

var whoweare="";
whoweare +='Live On Campus is one unique platform for the students all over India to interact and spread their ideas to the world. We at Live On Campus believe that the world is our campus. As an interactive media and entertainment forum, we bring students together on the basis of their expressions.<br /><br />Live On Campus is a celebration of all things that constitute ones campus. Students are free to share themselves, explore their areas of interest and expand their reach to the campuses all over the country.<br /><br />We are not just any blog. We are not even a blog. We make sure that we build a network of like-minded or even just plain students; who grasp the power of expressing and tell the world about oneself. Hence, we provide feedback, our students interact with each other on the basis of their contributions to Live On Campus.<br /><br />We are also not any social networking site. We get students together only to empower the youth and to provide them a recourse to express themselves. Live On Campus strives to expand and encompass all the voices that want to speak out. We have dedicated users who are students themselves saying that their lives were changed by this innovative platform that is all for the youth.';

/*var sign="";
sign +='<div class="fake"><form name="loginfrm"  style="margin-top: 9px;" method="POST" > <div class="loginp-2"><div class="loginp-2-1"><div class="label1">Email : </div> </div> <div class="loginp-2-2"><input type="text" size="35" class="inputtext" name="username" id="username"/></div><div class="loginp-2-3"><div class="label1">Password : </div></div><div class="loginp-2-4"><input type="password" size="35" class="inputpassword" name="pswd" id="passwd"/></div> <div class="loginp-2-7"><input type="submit" id="logenter" value="Login" name="submit"/></form> </div>';*/
					
			/*		$(".vrtAlign").click(function()
												 {
													// alert("successfull");
													 tour_page();
													$(".form_container").show("slow");
													
												 });*/
					
			$("#wtWeDo").live("click",function(){
									 		//alert("what we do");
											 	document.getElementById("PoPctnt").innerHTML="";
												document.getElementById("whWeAreActive").style.display="none";
												document.getElementById("whWeAre").style.display="block";
												document.getElementById("wtWeDoActive").style.display="block";
												document.getElementById("wtWeDo").style.display="none";
									jQuery("#PoPctnt").append(whatwedo);
									 });
			
			$("#whWeAre").live("click",function(){
									  		//alert("What We Are");
											 	document.getElementById("PoPctnt").innerHTML="";
												document.getElementById("whWeAreActive").style.display="block";
												document.getElementById("whWeAre").style.display="none";
												document.getElementById("wtWeDoActive").style.display="none";
												document.getElementById("wtWeDo").style.display="block";
									  	$("#PoPctnt").append(whoweare);
						   
									  });
			
			
			////////////////////////////////End take tour dot ready function //////////////////////////////////
			
			
			
////////////////////////////////////////////Start add me favorite function ////////////////////////////////////////////////////

if(op_sys=="Win32" || browser_name=="Microsoft Internet Explorer")
	{
			
		$("#addMe_submit").live("click",function()
						 { 
								var u_name=$("input#username").val();
								var passwd=$("input#passwd").val();
								var selid=$("input[@type='hidden']#selid").val();
								var selfav=$("input[@type='hidden']#selfav").val();
								var uid=$("input[@type='hidden']#uid").val();
										if(u_name=="" || u_name==null)
											{
												alert("Enter username");
												return false;
											}
											if(passwd=="" ||passwd==null)
											{
												alert("Password Can't be Blank");
												return false;
											}
		$.post("check_validation.php", {username: u_name, password: passwd},function(data)
											  {
												 if(data=="0")
												  {
													  
													  document.getElementById("errMsg").style.display="block";
													 // $("#f_container").append("Wrong User Name Or Password");
													  document.getElementById("username").value='';
													  document.getElementById("passwd").value='';
												  //$("#f_container").html(data);
												  }
												  else
												  {
													   //alert(uid);
													   if (uid='101'){
													   		var redrtlink = "loc.php";
													   }else{
														   	var redrtlink = "addfavo.php?id="+selid+"&type="+selfav;
													   }
													   //addfavo.php?id="+id+"&type="+type;, id: selid, type: selfav, uid: uid
													   //var redrtlink = "addfavo.php?id="+selid+"&type="+selfav;
													   //var redrtlink = "profile.php?id="+id;
													   //var redrtlink = "index.php";
													   window.location.replace(redrtlink);
													   
												  }
											
											});
				return false;
											
											});
	}
	else{
	$("#addMe_submit").live("click",function()
		{
			//alert("In Add me fav  "+uid);
			var u_name=$("input#username").val();
			var passwd=$("input#passwd").val();
			var selid=$("input[@type='hidden']#selid").val();
			var selfav=$("input[@type='hidden']#selfav").val();
			var uid=$("input[@type='hidden']#uid").val();
			//alert(uid);
			if(u_name=="" || u_name==null)
											{
												alert("Enter username");
												return false;
											}
											if(passwd=="" ||passwd==null)
											{
												alert("Password Can't be Blank");
												return false;
											}
		$.post("check_validation.php", {username: u_name, password: passwd},function(data)
											  {
												 //alert(data);
													//url="check_favorite.php?id="+selid+"&type="+selfav+"&uid="+uid;			 
												  if(data=="0")
												  {
													  document.getElementById("errMsg").style.display="block";
													 // $("#f_container").append("Wrong User Name Or Password");
													  document.getElementById("username").value='';
													  document.getElementById("passwd").value='';
													  
													   
												  //$("#f_container").html(data);
												  }
												  else
												  {	
												  	
													   
													   //alert(redrtlink);
													   if (uid='101'){
													   		var redrtlink = "loc.php";
													   }else{
														   	var redrtlink = "addfavo.php?id="+selid+"&type="+selfav;
													   }
													   window.location.replace(redrtlink);

													}
												  
											});
				return false;
			
		});
				
	}
				
///////////////////////////////////End Add me FAvorite function ///////////////////////////////////////////////////////////////////////////




$("#at16ptx").live("click",function(){
	$("#athiscontainer").remove();$("#addthisBox").remove();								 
	return false;
});




////////////////////////////////////////eye menu starts here/////////////////////////////////////////////////
/*
$("#eyehover p:last").hide();
  $("div.leftCont").hover(
      function () {
        movepic('button','images/left.png');
      }, 
      function () {
       movepic('button','images/right.png')
      }
    );
 $("div.middleCont").hover(
      function () {
        movepic('button','images/eyecenter_down.png');
      }, 
      function () {
       movepic('button','images/left.png')
      }
    );
 $("div.rytCont").hover(
      function () {
        movepic('button','images/right.png');
      }, 
      function () {
       movepic('button','images/eyecenter_down.png')
      }
    );



 $("div.eye").hover(

      function () {
	 $("#eyehover p:firt").hide('slow');
	   $("#eyehover p:last").show('slow');
       
      }, 
      function () {
   $("#eyehover p:firt").show('slow');
 $("#eyehover p:last").hide('slow');
      }
    );
*/

////////////////////////////////////////eye menu ends here///////////////



});	//End Of Document ready function..........

