var combodropimage="http://blogs.ibibo.com/images/header/icn_combo_dn.gif" //path to "drop down" image
var combodropoffsetY=1 //offset of drop down menu vertically from default location (in px)
var combozindex=100

if (combodropimage!="")
	combodropimage='<img class="downimage" src="'+combodropimage+'" title="Select an option" />'

function dhtmlselect(selectid, selectwidth, optionwidth){
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="dhtmlselect">'+selectbox.title+" "+combodropimage+'<div class="dropdown">')
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	document.write('</div></div>')
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	if (combodropimage!="")
		dhtmlselectbox.getElementsByTagName("img")[0].style.left=dhtmlselectbox.offsetWidth+3+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}


function openwindw1()
{
//alert('2220');
var container1= document.getElementById("headCont");
	var value1=" <div class='clearAll spacer10'></div> <div class='clearAll spacer5'></div> <div class='col1'><img src='images/new-logo.gif' alt='' /></div>"
	
  value1=value1+"<div class=col2><h1>Take a sneak peak at the all new canon photos</h1> <div class='spacer5 clearAll'></div>"
  value1=value1+"<span class='flLt'><b>&nbsp;&nbsp;Download the cool dekstop uploader</b></span>" 
    value1=value1+"<div class='col2Child'><span class='flLt'><b>Enhance your photos with new tools </b> <span class='font-11'> &nbsp;&nbsp;& more...</span></span>"
value1=value1+"</div></div><a href='http://photos.ibibo.com' class='tryNow' ><b>Try now</b></a>"
		  
		  value1=value1+"<div class='clearAll spacer10'></div>"
		  //debugger;
//		  alert(value1);
//		  alert(container1.innerHTML);
		  container1.innerHTML=container1.innerHTML+value1;
		  //document.getElementById("headCont").innerHTML="";
//		  alert('2221');
		  }
	  //openwindw1();
if (document.getElementsByTagName && !window.ParseCtl)
{

	var ParseCtl =
	{
		onparse : function () {;},
		complete : false,
		callOnParse : function () 
		{
		
			if (document.getElementsByTagName("body").length == 0 || ParseCtl.complete) return;
			
			ParseCtl.complete = true; 
			ParseCtl.onparse();
		//openwindw1();
		}
	};

	if (document.readyState) document.onreadystatechange = ParseCtl.callOnParse;
	else document.addEventListener("DOMContentLoaded", ParseCtl.callOnParse, null);	
};
//window.onload = function(){old_window_onload();new_function();}