﻿     
        var color
         function getURLParam(strParamName){
  var strReturn = "";
  var strHref = window.location.href;
  if ( strHref.indexOf("?") > -1 ){
    var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      if (
aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){
        var aParam = aQueryString[iParam].split("=");
        strReturn = aParam[1];
        break;
      }
    }
  }
  return unescape(strReturn);
}

 function func_chng3(int1)
		{
		
		    var source = document.getElementById(int1).src.toString()
		    source = document.getElementById(int1).Style["background-image"].ToString()
		    alert(source)
		    if( source.indexOf("NoBuy") > -1 ) 
		    {
		    return 0;
		    }
		    source = source.replace(/cover2.gif/,"cover.gif")
		    //alert(source
		   // document.getElementById(int1).style.backgroudImage= "url("+source+")" 
		    document.getElementById(int1).src=source
		    //source = "pics/main/bid1.gif"
		    //var obj = document.getElementById(int1)
		    //obj.src = source;
		    //document[int1].src = source;
		    func_chng1(int1,'blue')
    	}
    		 function func_chng5(int1)
		{
		    //var source = document.getElementById(int1).src.toString()
		    var source = document.getElementById(int1).Style["background-image"].ToString()
		    alert(source)
		    if( source.indexOf("NoBuy") > -1 ) 
		    {
		    return 0;
		    }
		    source = source.replace(/.gif/,"cover2.gif")
		    //alert(source)
		    document.getElementById(int1).src=source
		   // document.getElementById(int1).style.backgroudImage="url("+source+")" 
		    //source = "pics/main/bid1.gif"
		    //var obj = document.getElementById(int1)
		    //obj.src = source;
		    //document[int1].src = source;
		    func_chng1(int1,'blue')
    	}
    function func_chng4(int1)
		{
		    var source = document.getElementById(int1).src.toString()
		   // source = document.getElementById(int1).style.backgroudImage.toString()
		    //alert(source)
		    if( source.indexOf("NoBuy") > -1 ) 
		    {
		    return 0;
		    }
		    //alert(source)
		   // source = source.replace(/.gif/,".gif")
		    source = source.replace(/cover2./,".")
		    source = source.replace(/cover./,".")
		    //source = source.replace(/..gif/,".gif")
		    
		    //alert(source)
		    //var obj = document.getElementById(int1)
		    //obj.src = source;
		    document.getElementById(int1).src=source;
		    //document.getElementById(int1).style.backgroudImage="url("+source+")" 
		    
    	} 		


        function func_chng1(int1, color2)
		{
		
		    color = document.getElementById(int1).style.color;
    		
		    if (color2=="blue")//00239a
		    {
		        document.getElementById(int1).style.color="red";
		        document.getElementById(int1).style.textDecorationUnderline=true;
    		
		    }
    		
		    if (color2=="white")
		    {
		        document.getElementById(int1).style.textDecorationUnderline=true;
		    }
		    var inner = document.getElementById(int1).innerHTML.toString()
		    var inner2 = document.getElementById(int1).innerHTML.toString()
    		var inner3 = int1.toString()
    		
//		    if (inner3.indexOf("invite") > -1 || inner3.indexOf("invite") > -1 ) 
//		    {
//		    //alert(getURLParam("token"))
//		       // Tip("asfdasdfasdf", FADEIN, 1000, FADEOUT, 350, FOLLOWMOUSE, false, STICKY, true, OFFSETX, -100, OFFSETY, 10, CLICKCLOSE, true, CENTERMOUSE, true)
//	           Tip("<font size=5>Click Outside Window to Close</font><br /><IFRAME width=840 height=600 title=&#39;Google Search&#39; style=&#39;WIDTH: 550px; HEIGHT: 50px&#39; marginWidth=&#39;0&#39; marginHeight=&#39;0&#39; src='invite.aspx?token=" + getURLParam("token")  + "&amp;username=" + getURLParam("username")  + "' frameBorder=&#39;0&#39; scrolling=&#39;no&#39;></IFRAME>", FADEIN, 1000, FADEOUT, 350, FOLLOWMOUSE, false, CENTERMOUSE, true, STICKY, true, CLICKCLOSE, true, OFFSETY, -400)
//	        }
    	    
//		     if (inner.indexOf("s7preview") > -1 || inner.indexOf("s7Preview") > -1 ) 
//		    {		
//		        Tip("<font size=5>Click Outside Window to Close</font><br /><IFRAME width=840 height=600 title=&#39;Google Search&#39; style=&#39;WIDTH: 550px; HEIGHT: 50px&#39; marginWidth=&#39;0&#39; marginHeight=&#39;0&#39; src='preview.aspx?pagetoview=" + getURLParam("token")  + "&amp;un=" + getURLParam("username")  + "' frameBorder=&#39;0&#39; scrolling=&#39;no&#39;></IFRAME>", FADEIN, 1000, FADEOUT, 350, FOLLOWMOUSE, false, STICKY, true, CLICKCLOSE, true, CENTERMOUSE, true, OFFSETY, -40)
//	        }
		    if (inner3.indexOf("Invite") > -1 || inner3.indexOf("invite") > -1 ) 
		    {
		        Tip("Invite your friends and earn free bids!")
		    }
		    if (inner3.indexOf("home") > -1 || inner3.indexOf("Home") > -1 ) 
		    {
		        Tip("Go to main page.")
		    }
		    if (inner3.indexOf("mybidito") > -1 || inner3.indexOf("mybidito") > -1 ) 
		    {
		        Tip("Go to your Bidito page.")
		    }
		    if (inner3.indexOf("help1") > -1 || inner3.indexOf("help1") > -1 ) 
		    {
		        Tip("Get help with Bidito.")
		    }
		    if (inner3.indexOf("buy") > -1 || inner3.indexOf("buy") > -1 ) 
		    {
		        Tip("Purchase bids and start competing now!")
		    }
		    if (inner3.indexOf("how") > -1 || inner3.indexOf("how") > -1 ) 
		    {
		        Tip("Learn how Bidito works!")
		    }
		    if (inner3.indexOf("terms") > -1 || inner3.indexOf("terms") > -1 ) 
		    {
		        Tip("View the terms and conditions for Bidito.")
		    }
    		if (inner3.indexOf("about") > -1 || inner3.indexOf("about") > -1 ) 
		    {
		        Tip("Learn about Bidito and competitive bidding.")
		    }if (inner3.indexOf("contact") > -1 || inner3.indexOf("contact") > -1 ) 
		    {
		        Tip("Contact a Bidito professional.")
		    }
		    if (inner3.indexOf("privacy") > -1 || inner3.indexOf("privacy") > -1 ) 
		    {
		        Tip("View the privacy statement for Bidito.")
		    }
		    if (inner3.indexOf("help2") > -1 || inner3.indexOf("help2") > -1 ) 
		    {
		        Tip("Get help with Bidito.")
		    }
		    if (inner3.indexOf("News") > -1 || inner3.indexOf("news") > -1 ) 
		    {
		        Tip("News, Events, Comments, and testimonies<br />posted from facebook and google Calendar.")
		    }
		    if (inner3.indexOf("Forum") > -1 || inner3.indexOf("forum") > -1 ) 
		    {
		        Tip("Bidito help and comments forum.")
		    }
		    if (inner3.indexOf("membersChat") > -1 || inner3.indexOf("memberschat") > -1 ) 
		    {
		        Tip("Bidito Member's Chat. Chat among members online.")
		    }
		    if (inner3.indexOf("myMessages") > -1 || inner3.indexOf("mymessages") > -1 ) 
		    {
		        Tip("Your Bidito Messages.")
		    }
		if (inner3.indexOf("image1") > -1 || inner3.indexOf("image1") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }
		    if (inner3.indexOf("image2") > -1 || inner3.indexOf("image2") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }if (inner3.indexOf("image3") > -1 || inner3.indexOf("image3") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }if (inner3.indexOf("image4") > -1 || inner3.indexOf("image4") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }
		    if (inner3.indexOf("image5") > -1 || inner3.indexOf("image5") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }
		    if (inner3.indexOf("image6") > -1 || inner3.indexOf("image6") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }
		    if (inner3.indexOf("image7") > -1 || inner3.indexOf("image7") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }
		    if (inner3.indexOf("image8") > -1 || inner3.indexOf("image8") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }
		    if (inner3.indexOf("image9") > -1 || inner3.indexOf("image9") > -1 ) 
		    {
		        Tip("Click here to view more details.")
		    }
		    
		    
		    
		    
		    
		    if (inner3.indexOf("ImageButton1") > -1 || inner3.indexOf("ImageButton1") > -1 ) 
		    {
		        Tip("Log in to your Bidito account.")
		    }
		    if (inner3.indexOf("ImageButton2") > -1 || inner3.indexOf("ImageButton2") > -1 ) 
		    {
		        Tip("Register for Bidito and join the competition!")
		    }
		    if (inner3.indexOf("ImageButton3") > -1 || inner3.indexOf("ImageButton3") > -1 ) 
		    {
		        Tip("Search for products on Bidito.")
		    }
		    if (inner3.indexOf("logout") > -1 || inner3.indexOf("logout") > -1 ) 
		    {
		        Tip("Log off of your Bidito account.")
		    }
		    
		    
		    
		    
		    
		    
		    if (inner3.indexOf("bid1") > -1 || inner3.indexOf("bid1") > -1 ) 
		    {
		        Tip("Place a bid on this item!<br />Your bid will take a moment to be shown.")
		    }if (inner3.indexOf("bid2") > -1 || inner3.indexOf("bid2") > -1 ) 
		    {
		        Tip("Place a bid on this item!<br />Your bid will take a moment to be shown.")
		    }if (inner3.indexOf("bid3") > -1 || inner3.indexOf("bid3") > -1 ) 
		    {
		        Tip("Place a bid on this item!<br />Your bid will take a moment to be shown.")
		    }if (inner3.indexOf("bid4") > -1 || inner3.indexOf("bid4") > -1 ) 
		    {
		        Tip("Place a bid on this item!<br />Your bid will take a moment to be shown.")
		    }
		    
		    
		    
		     if (inner3.indexOf("buy1") > -1 || inner3.indexOf("buy1") > -1 ) 
		    {
		        Tip("Buy this item with a 10% buy now charge added to the 'Suggested Price'<br /> and we will credit all your bids toward your purchase at $.35/bid!<br />Please press button only 1 time(response will take a moment)")
		    }if (inner3.indexOf("buy2") > -1 || inner3.indexOf("buy2") > -1 ) 
		    {
		        Tip("Buy this item with a 10% buy now charge added to the 'Suggested Price'<br /> and we will credit all your bids toward your purchase at $.35/bid<br />Please press button only 1 time(response will take a moment)")
		    }if (inner3.indexOf("buy3") > -1 || inner3.indexOf("buy3") > -1 ) 
		    {
		        Tip("Buy this item with a 10% buy now charge added to the 'Suggested Price'<br /> and we will credit all your bids toward your purchase at $.35/bid<br />Please press button only 1 time(response will take a moment)")
		   }if (inner3.indexOf("buy4") > -1 || inner3.indexOf("buy4") > -1 ) 
		    {
		        Tip("Buy this item with a 10% buy now charge added to the 'Suggested Price'<br /> and we will credit all your bids toward your purchase at $.35/bid<br />Please press button only 1 time(response will take a moment)")
		    }
		    
		    
		    if (inner3.indexOf("autobidder") > -1 || inner3.indexOf("autoBidder") > -1 ) 
		    {
		        Tip("Create an auto-bidder!")
		    }
		    
		    
		    if (inner3.indexOf("createAutobidder") > -1 || inner3.indexOf("createAutobidder") > -1 ) 
		    {
		        Tip("Create this auto-bidder!")
		    }
		    if (inner3.indexOf("Search") > -1 || inner3.indexOf("search") > -1 ) 
		    {
		  Tip("<div><div style='float: left; width: 110px;'>Category</div><div style='float: left; width: 158px;'>Keyword(s)</div><div style='float: left; width: 107px;'>Type</div><div style='float: left; width: 97px;'>Condition</div></div><br /><div><div style='float: left; width: 110px;'><select id='ddlSearch'><option value=''></option><option value='Automative'>Automative</option><option value='Clothing'>Clothing</option><option value='Collectibles'>Collectibles</option><option value='Electronics'>Electronics</option><option value='Gift Cards'>Gift Cards</option><option value='Jewelry'>Jewelry</option><option value='Other'>Other</option><option value='Sports'>Sports</option><option value='toys'>Toys</option><option value='Past'>Past Auctions</option></select>&#160;</div><div style='float: left; width: 158px;'><input type='TEXT' id='txtSearch' value=''  />&#160;</div><div style='float: left; width: 107px;'><select id='ddlType'><option value=''></option><option value='Reverse'>Reverse</option><option value='Free'>Free</option><option value='Beginner'>Beginner</option><option value='Non-Beginner'>Non-Beginner</option><option value='Closed'>Closed</option></select>&#160;</div><div style='float: left; width: 97px;'><select id='ddlCondition'><option value=''></option><option value='New'>New</option><option value='Refurbished'>Refurbished</option><option value='Used'>Used</option></select>&#160;</div><div style='float: left;'><input type='button' id='btnSearch' value='Search' onClick='goHere()' /></div></div>", FADEIN, 1000, FADEOUT, 350, FOLLOWMOUSE, false, STICKY, true, CLICKCLOSE, false, CLOSEBTN, true, LEFT, true, WIDTH, 540, OFFSETX, -120, OFFSETY, -15)
		    }
//		     if (inner3.indexOf("googlefriendconnect2") > -1 || inner3.indexOf("googlefriendconnect2") > -1 ) 
//		    {
//		  Tip("<iframe src='googlefriendconnect.aspx' height='200' scrolling='no' style='width: 260px; border-width: 0px;'></iframe>", FADEIN, 1000, FADEOUT, 350, FOLLOWMOUSE, false, STICKY, true, CLICKCLOSE, false, CLOSEBTN, true, LEFT, false, WIDTH, 270)
//		    }innertutorial
            if (inner3.indexOf("innertutorial1") > -1 || inner3.indexOf("innertutorial1") > -1 ) 
		    {
		  Tip("<iframe src='Tutorial1.aspx' height='355' scrolling='no' style='width: 415px; border-width: 0px;'></iframe>", FADEIN, 1000, FADEOUT, 350, FOLLOWMOUSE, false, STICKY, true, CLICKCLOSE, false, CLOSEBTN, true, LEFT, true, WIDTH, 415)
		    }
		    if (inner3.indexOf("innertutorial2") > -1 || inner3.indexOf("innertutorial2") > -1 ) 
		    {
		  Tip("<iframe src='tutorial2.aspx' height='355' scrolling='no' style='width: 415px; border-width: 0px;'></iframe>", FADEIN, 1000, FADEOUT, 350, FOLLOWMOUSE, false, STICKY, true, CLICKCLOSE, false, CLOSEBTN, true, LEFT, true, WIDTH, 415)
		    }
		    if (inner3.indexOf("googleChat") > -1 ) 
		    {
		        Tip("Please wait for us to respond.<br>If we do not respond you may also<br>contact us via the help Menu.<Br>Don't forget to include your username!")
		    }
		    
		 
		}
		
		function goHere(  )
            {
            var x4 = document.getElementById("ddlType").value
            var x3 = document.getElementById("ddlCondition").value
            var x2 = document.getElementById("ddlSearch").value
            var x = document.getElementById("txtSearch").value
            __doPostBack('Search1', x2.toString() + "&" + x3.toString() + "&" + x.toString() + "!!!" + x4.toString()); //do a postback to updatepanel1.onload which calls "UpdatePanel1_Load"
            }
		
		function func_chng2(int1)
		{
		document.getElementById(int1).style.color=color;//"00239a"
		document.getElementById(int1).style.textDecorationUnderline=false;
		}
