//search st
function searchCheck(){
var str=''
if(document.frm.ss.value=='' || document.frm.ss.value=='Search Products/Services'){
alert("Please enter some keyword to search.")
document.frm.ss.focus()
document.frm.ss.value=''
return false}
if(document.frm.ss.value.length<3){
alert("Please Enter atleast 3 character")
document.frm.ss.focus()
return false}
if(document.frm.ss.value){
var str1
str1=document.frm.ss.value.replace(/^\s+/g,'').replace(/\s+$/g,'')
str1=str1.replace(/[^a-zA-Z0-9+]/g,' ')
str1=str1.replace(/\+/g,' ')
str1=str1.replace(/\s+/g,'+')
str+='ss='+str1
window.location = "http://www.packagingsolution.in/search.html?"+str;
return false}}
function searchClear(){
if(document.frm.ss.value=='Search Products/Services'){
document.frm.ss.value=''}}
function settext(){
if(document.frm.ss.value==''){
document.frm.ss.value='Search Products/Services'}}
function settextvalue(){
document.frm.ss.value='Search Products/Services'}
function getDwsCookie(Name){
var search=Name+"="
if(document.cookie.length>0){
offset=document.cookie.indexOf(search)
if(offset !=-1){
offset+=search.length
end=document.cookie.indexOf(";",offset)
if(end==-1)end=document.cookie.length
return unescape(document.cookie.substring(offset,end))}}
return ""}
function setDwsCookie(name,value)
{
    if(value.length>0)
        document.cookie=name+"="+escape(value)+";"
}


//search end

function tst(d) 
{ 
if(d=="t1")
{
document.getElementById('t1').style.display = "block";
document.getElementById('t2').style.display = "none";
}
else
{
document.getElementById('t2').style.display = "block";
document.getElementById('t1').style.display = "none";
}}
var persistmenu="yes"
var persisttype="sitewide"
if(document.getElementById){
document.write('<style type="text/css">\n')
document.write('.off{display: none;}\n')
document.write('</style>\n')}
function SwitchMenu(obj){
if(document.getElementById){
var el=document.getElementById(obj)
if(el.style.display !="inline"){
for(var i=0;i<ar.length;i++){
if(ar[i].className=="tbq")
ar[i].style.display="none"}
el.style.display="inline"}}}
function SwitchMenu1(obj){
if(document.getElementById){
var el=document.getElementById(obj)
var ar=document.getElementById("mas").getElementsByTagName("div")
if(el.style.display !="block"){
for(var i=0;i<ar.length;i++){
if(ar[i].className=="off")
ar[i].style.display="none"}
el.style.display="block";}
else{
el.style.display="none"}}}
//tab end



/*-plus-ninus */
var plnew = "pl2";
function show(obj, plus, obj1,plus1)
{
if(document.getElementById)
{
var el = document.getElementById(obj);
var ar = document.getElementById("ms1").getElementsByTagName("div");
for (var i=0; i<ar.length; i++)
{
if(ar[i].className == "on")
{
ar[i].className = "off";
}
}
document.getElementById(obj).className = "on";
}
if(document.getElementById(plnew))
{
document.getElementById(plnew).className = "prd lh2 c16 b bo7 pi9 cu";
}
if(document.getElementById(plus).className == "prd lh2 c16 b bo7 pi9 cu")
{
document.getElementById(plus).className = "pr1 lh2 b c16 b pi9";
}
plnew = plus;
document.getElementById(obj1).className = "off";
document.getElementById(plus1).className = "b f1 u c17 txr";
}
function show1(obj, plus)
{
document.getElementById(obj).className = "on";
document.getElementById(plus).className = "off";
}
function show2(obj, plus)
{
document.getElementById(obj).className = "b f1 u c17 txr";
document.getElementById(plus).className = "off";
}

/*-plus-ninus:end */

//language st
browserName=navigator.appName
browserVer=parseInt(navigator.appVersion)
condition=!(((browserName.indexOf("Explorer")>=0)&&(browserVer<4))||((browserName.indexOf("Netscape")>=0)&&(browserVer<2)))
if(condition==true)
CanAnimate=true
else
CanAnimate=false
function convertnew(pattern){
var open_in_same_window=0
var my_location=unescape(document.location.toString())
var new_location=''
var new_pattern=''
if(my_location.indexOf('translate_c?')!=-1){
var indexof_u=my_location.indexOf('u=')
if(indexof_u==-1){
new_location=document.location}
else{
var subs=my_location.substring(indexof_u,my_location.length)
var ss=subs.split('&')
new_location=ss[0].substring(2,ss[0].length)
}}
else{
new_location=document.location}
indexof_p=pattern.indexOf('|')
var isen=''
if(indexof_p==-1){
indexof_p1=pattern.indexOf('><')
if(indexof_p1==-1){
new_pattern=pattern
if(pattern=='en'){
isen=1
}}
else{
var psplit=pattern.split('><')
new_pattern=psplit[0]+'|'+psplit[1]
if(psplit[1]=='en'){
isen=1
}}}
else{
var psplit=pattern.split('|')
new_pattern=psplit[0]+'|'+psplit[1]
if(psplit[1]=='en'){
isen=1
}}
var thisurl=''
if(isen==1){
thisurl=new_location}
else{
thisurl='http://translate.google.com/translate_c?langpair='+new_pattern+"&u="+new_location}
if(open_in_same_window==1){
window.location.href=thisurl}
else{
if(CanAnimate){
msgWindow=window.open('','subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0')
msgWindow.focus()
msgWindow.location.href=thisurl}
else{
msgWindow=window.open(thisurl,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0')
}}}
//language end

function ExpandCollapse(id) 
{
	if(id=="plus")
	{
		document.getElementById('plus').style.display = "block";
		document.getElementById('minus').style.display = "none";
	}
	else
	{
		document.getElementById('minus').style.display = "block";
		document.getElementById('plus').style.display = "none";
	}
}
function SwitchMenu4(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv4").getElementsByTagName("table");
if(el.style.display != "block"){
for (var i=0; i<ar.length; i++){
if (ar[i].className=="sub1")
ar[i].style.display = "none";
}
el.style.display = "block";}
else{
el.style.display = "none";
}}}


function SwitchMenu3(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv3").getElementsByTagName("table");
if(el.style.display != "block"){
for (var i=0; i<ar.length; i++){
if (ar[i].className=="sub1")
ar[i].style.display = "none";
}
el.style.display = "block";}
else{
el.style.display = "none";
}}}


function hot()
{
document.getElementById('htb').className="don";
document.getElementById('ln').className="doff";

document.getElementById('h').className="b fl k1 w-5 ta c11";
document.getElementById('l').className="b fl w-5 cu bg4 ta k1 c10";

document.getElementById('foroffer').style.display="block";
document.getElementById('forlaunch').style.display="none";
}

function newlaunch()
{
document.getElementById('htb').className="doff";
document.getElementById('ln').className="don";


document.getElementById('h').className="b fl w-5 cu bg4 ta k1 c10";
document.getElementById('l').className="b fl k1 w-5 ta c11";

document.getElementById('foroffer').style.display="none";
document.getElementById('forlaunch').style.display="block";
}

var testnew =0;
var test =1;
function nexthot()
{
test++;
if (document.getElementById('hot'+test))
{
document.getElementById('hot'+test).className="don";
var testnew = test - 1;
document.getElementById('hot'+testnew).className="doff";
}
else
{
test--;
}}
function prehot()
{
if (document.getElementById('hot'+test) && test > 1)
{
test--;
document.getElementById('hot'+test).className="don";
var testnew = test+1;
document.getElementById('hot'+testnew).className="doff";
}}

var launchnew =0;
var launch =1;

function nextlan()
{
launch++;
if (document.getElementById('launch'+launch))
{
document.getElementById('launch'+launch).className="don";
var launchnew = launch - 1;
document.getElementById('launch'+launchnew).className="doff";
}
else
{
launch--;
}}

function prelan()
{
if (document.getElementById('launch'+launch) && launch > 1)
{
launch--;
document.getElementById('launch'+launch).className="don";
var launchnew = launch+1;
document.getElementById('launch'+launchnew).className="doff";
}}



//news st
var pausecontent=new Array()
pausecontent[0]='<p class="f4 na b"><a href="news.html#press-release">Press Release</A></p>This is the DEFAULT DESCRIPTION for NEWS. You are required to update it as per your requirement. The maximum allowed limit is 4000...<br><p class="h7 r f1 c8"><a href="#">&#187; Read More</a>'
function pausescroller(content, divId, divClass, delay){
this.content=content
this.tickerid=divId
this.delay=delay 
this.mouseoverBol=0 
this.hiddendivpointer=1 
if(content[1])
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv ln2" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv ln2" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
else
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv ln2" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv ln2" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[0]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) 
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) 
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) 
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))

this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) 
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}
pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}}
pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}
pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) 
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ 
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle)
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}
//news end






var dhtmlwindow={
imagefiles:['','','',''],
ajaxbustcache: true,
minimizeorder: 0,
tobjects: [],
init:function(t){
var domwindow=document.createElement("div")
domwindow.id=t
domwindow.className="dhtmlwindow"
var domwindowdata=''
domwindowdata='<div class="drag-handle">'
domwindowdata+='DHTML Window <div class="drag-controls" ></div>'
domwindowdata+='</div>'
domwindowdata+='<div class="drag-contentarea"></div>'
domwindowdata+='<div class="drag-statusarea"><div class="drag-resizearea"></div></div>'
domwindowdata+='</div>'
domwindow.innerHTML=domwindowdata
document.getElementById("dhtmlwindowholder").appendChild(domwindow)
this.zIndexvalue=(this.zIndexvalue)? this.zIndexvalue+1 : 100
var t=document.getElementById(t)
var divs=t.getElementsByTagName("div")
for(var i=0;i<divs.length;i++){
if(/drag-/.test(divs[i].className))
t[divs[i].className.replace(/drag-/,"")]=divs[i]}
t.style.zIndex=this.zIndexvalue
t.handle._parent=t
t.resizearea._parent=t
t.controls._parent=t
t.onclose=function(){return true}
t.onmousedown=function(){dhtmlwindow.zIndexvalue++;this.style.zIndex=dhtmlwindow.zIndexvalue}
t.handle.onmousedown=dhtmlwindow.setupdrag
t.resizearea.onmousedown=dhtmlwindow.setupdrag
t.controls.onclick=dhtmlwindow.enablecontrols
t.show=function(){dhtmlwindow.show(this)}
t.hide=function(){dhtmlwindow.close(this)}
t.setSize=function(w,h){dhtmlwindow.setSize(this,w,h)}
t.moveTo=function(x,y){dhtmlwindow.moveTo(this,x,y)}
t.isResize=function(bol){dhtmlwindow.isResize(this,bol)}
t.isScrolling=function(bol){dhtmlwindow.isScrolling(this,bol)}
t.load=function(contenttype,contentsource,title){dhtmlwindow.load(this,contenttype,contentsource,title)}
this.tobjects[this.tobjects.length]=t
return t
},
open:function(t,contenttype,contentsource,title,attr,recalonload){
var d=dhtmlwindow
function getValue(Name){
var config=new RegExp(Name+"=([^,]+)","i")
return(config.test(attr))? parseInt(RegExp.$1): 0}
if(document.getElementById(t)==null)
t=this.init(t)
else
t=document.getElementById(t)
t.setSize(getValue(("width")),(getValue("height")))
var xpos=getValue("center")? "middle" : getValue("left")
var ypos=getValue("center")? "middle" : getValue("top")
if(typeof recalonload!="undefined"&&recalonload=="recal"&&this.scroll_top==0){
if(window.attachEvent&&!window.opera)
this.addEvent(window,function(){setTimeout(function(){t.moveTo(xpos,ypos)},400)},"load")
else-
this.addEvent(window,function(){t.moveTo(xpos,ypos)},"load")}
t.isResize(getValue("resize"))
t.isScrolling(getValue("scrolling"))
t.style.visibility="visible"
t.style.display="block"
t.contentarea.style.display="block"
t.moveTo(xpos,ypos)
t.load(contenttype,contentsource,title)
if(t.state=="minimized"&&t.controls.firstChild.title=="Restore"){
t.controls.firstChild.setAttribute("src",dhtmlwindow.imagefiles[0])
t.controls.firstChild.setAttribute("title","Minimize")
t.state="fullview"}
parent.document.getElementById("qw").style.display="block"
return t
},
setSize:function(t,w,h){
t.style.width=Math.max(parseInt(w),150)+"px"
t.contentarea.style.height=Math.max(parseInt(h),100)+"px"
},
moveTo:function(t,x,y){
this.getviewpoint()
t.style.left=(x=="middle")? this.scroll_left+(this.docwidth-t.offsetWidth)/2+"px" : this.scroll_left+parseInt(x)+"px"
t.style.top=(y=="middle")? this.scroll_top+(this.docheight-t.offsetHeight)/2+"px" : this.scroll_top+parseInt(y)+"px"
},
isResize:function(t,bol){
t.statusarea.style.display=(bol)? "block" : "none"
t.resizeBool=(bol)? 1 : 0
},
isScrolling:function(t,bol){
t.contentarea.style.overflow=(bol)? "auto" : "hidden"
},
load:function(t,contenttype,contentsource,title){
var contenttype=contenttype.toLowerCase()
if(typeof title!="undefined")
t.handle.firstChild.nodeValue=title
if(contenttype=="inline")
t.contentarea.innerHTML=contentsource
else if(contenttype=="div"){
t.contentarea.innerHTML=document.getElementById(contentsource).innerHTML
document.getElementById(contentsource).style.display="none"}
else if(contenttype=="iframe"){
t.contentarea.style.overflow="hidden"
if(!t.contentarea.firstChild || t.contentarea.firstChild.tagName!="IFRAME")
t.contentarea.innerHTML='<iframe ID="qw" FRAMEBORDER="0" src=""  style="margin:0; padding:0; width:100%; height:100%" name="_iframe-'+t.id+'"></iframe>'
window.frames["_iframe-"+t.id].location.replace(contentsource)}
else if(contenttype=="ajax"){
this.ajax_connect(contentsource,t)}
t.contentarea.datatype=contenttype
},





setupdrag:function(e){
var d=dhtmlwindow
var t=this._parent
d.etarget=this
var e=window.event || e
d.initmousex=e.clientX
d.initmousey=e.clientY
d.initx=parseInt(t.offsetLeft)
d.inity=parseInt(t.offsetTop)
d.width=parseInt(t.offsetWidth)
d.contentheight=parseInt(t.contentarea.offsetHeight)
if(t.contentarea.datatype=="iframe"){
t.style.backgroundColor="transparent"
t.contentarea.style.visibility="visible"}
document.onmousemove=d.getdistance
document.onmouseup=function(){
if(t.contentarea.datatype=="iframe"){
t.contentarea.style.backgroundColor="transparent"
t.contentarea.style.visibility="visible"}
d.stop()}
return false
},
getdistance:function(e){
var d=dhtmlwindow
var etarget=d.etarget
var e=window.event || e
d.distancex=e.clientX-d.initmousex
d.distancey=e.clientY-d.initmousey
if(etarget.className=="drag-handle")
d.move(etarget._parent,e)
else if(etarget.className=="drag-resizearea")
d.resize(etarget._parent,e)
return false
},
getviewpoint:function(){
var ie=document.all&&!window.opera
var domclientWidth=document.documentElement&&parseInt(document.documentElement.clientWidth)|| 100000
this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
this.scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
this.scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
this.docwidth=(ie)? this.standardbody.clientWidth :(/Safari/i.test(navigator.userAgent))? window.innerWidth : Math.min(domclientWidth,window.innerWidth-16)
this.docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
},
rememberattrs:function(t){
this.getviewpoint()
t.lastx=parseInt((t.style.left || t.offsetLeft))-dhtmlwindow.scroll_left
t.lasty=parseInt((t.style.top || t.offsetTop))-dhtmlwindow.scroll_top
t.lastwidth=parseInt(t.style.width)
},
move:function(t,e){
t.style.left=dhtmlwindow.distancex+dhtmlwindow.initx+"px"
t.style.top=dhtmlwindow.distancey+dhtmlwindow.inity+"px"
},
resize:function(t,e){
t.style.width=Math.max(dhtmlwindow.width+dhtmlwindow.distancex,150)+"px"
t.contentarea.style.height=Math.max(dhtmlwindow.contentheight+dhtmlwindow.distancey,100)+"px"
},
enablecontrols:function(e){
var d=dhtmlwindow
var sourceobj=window.event? window.event.srcElement : e.target
if(/Minimize/i.test(sourceobj.getAttribute("title")))
d.minimize(sourceobj,this._parent)
else if(/Restore/i.test(sourceobj.getAttribute("title")))
d.restore(sourceobj,this._parent)
else if(/Close/i.test(sourceobj.getAttribute("title")))
d.close(this._parent)
return false
},
minimize:function(button,t){
dhtmlwindow.rememberattrs(t)
button.setAttribute("src",dhtmlwindow.imagefiles[2])
button.setAttribute("title","Restore")
t.state="minimized"
t.contentarea.style.display="none"
t.statusarea.style.display="none"
if(typeof t.minimizeorder=="undefined"){
dhtmlwindow.minimizeorder++
t.minimizeorder=dhtmlwindow.minimizeorder}
t.style.left="10px"
t.style.width="200px"
var windowspacing=t.minimizeorder*10
t.style.top=dhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.offsetHeight*t.minimizeorder)-windowspacing+"px"
},
restore:function(button,t){
dhtmlwindow.getviewpoint()
button.setAttribute("src",dhtmlwindow.imagefiles[0])
button.setAttribute("title","Minimize")
t.state="fullview"
t.style.display="block"
t.contentarea.style.display="block"
if(t.resizeBool)
t.statusarea.style.display="block"
t.style.left=parseInt(t.lastx)+dhtmlwindow.scroll_left+"px"
t.style.top=parseInt(t.lasty)+dhtmlwindow.scroll_top+"px"
t.style.width=parseInt(t.lastwidth)+"px"
},
close:function(t){
try{
var closewinbol=t.onclose()}
catch(err){
var closewinbol=true}
finally{
if(typeof closewinbol=="undefined"){
alert("An error has occured somwhere inside your \"onclose\" event handler")
var closewinbol=true}}
if(closewinbol){
if(t.state!="minimized")
dhtmlwindow.rememberattrs(t)
t.style.display="none"}
return closewinbol
},
show:function(t){
if(t.lastx)
dhtmlwindow.restore(t.controls.firstChild,t)
else
t.style.display="block"
t.state="fullview"
},
ajax_connect:function(url,t){
var page_request=false
var bustcacheparameter=""
if(window.XMLHttpRequest)
page_request=new XMLHttpRequest()
else if(window.ActiveXObject){
try{
page_request=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){
try{
page_request=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){}}}
else
return false
page_request.onreadystatechange=function(){dhtmlwindow.ajax_loadpage(page_request,t)}
if(this.ajaxbustcache)
bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime(): "?"+new Date().getTime()
page_request.open('GET',url+bustcacheparameter,true)
page_request.send(null)
},
ajax_loadpage:function(page_request,t){
if(page_request.readyState==4&&(page_request.status==200 || window.location.href.indexOf("http")==-1)){
t.contentarea.innerHTML=page_request.responseText}
},
stop:function(){
dhtmlwindow.etarget=null
document.onmousemove=null
document.onmouseup=null
},
addEvent:function(target,functionref,tasktype){
var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
if(target.addEventListener)
target.addEventListener(tasktype,functionref,false)
else if(target.attachEvent)
target.attachEvent(tasktype,functionref)
},
cleanup:function(){
for(var i=0;i<dhtmlwindow.tobjects.length;i++){
dhtmlwindow.tobjects[i].handle._parent=dhtmlwindow.tobjects[i].resizearea._parent=dhtmlwindow.tobjects[i].controls._parent=null}
window.onload=null
}}
document.write('<div id="dhtmlwindowholder"><span style="display:none">.</span></div>')
window.onunload=dhtmlwindow.cleanup



function tst(d) 
{ 
if(d=="t1")
{
document.getElementById('t1').style.display = "block";
document.getElementById('t2').style.display = "none";
}
else
{
document.getElementById('t2').style.display = "block";
document.getElementById('t1').style.display = "none";
}}


///-----starting of new js part to open all blowup from a single js-----------------
var myWidthnew=0, myHeightnew=0;
var divscroll,message2,prname,imagediv,blwtbl,mx,mx1;
function bhw_js(val){
if( typeof( window.innerWidth )=='number' ){myWidthnew=window.innerWidth;myHeightnew=window.innerHeight;} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {myWidthnew=document.documentElement.clientWidth;myHeightnew=document.documentElement.clientHeight;} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {myWidthnew=document.body.clientWidth;myHeightnew=document.body.clientHeight;}var h=window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;var browserName=navigator.appName; var imagedivheight=myHeightnew-93;var test=myWidthnew*24/100;var divwidth=myWidthnew-test;var widthformizilla=myWidthnew-538;var mozillawidth=widthformizilla-divwidth;var mozillawidth1=mozillawidth/2;var mtop=h+7;var iewidth=myWidthnew-516;var aboveheight=myHeightnew-584;if (val=="cal"){iewidth=myWidthnew-730;aboveheight=myHeightnew-410;}var iewidth1=iewidth/2;var aboveheight1=aboveheight/2+h;divscroll.style.height="500px";divscroll.style.width="504px";blwtbl.style.height="478px";if (val=="cal"){blwtbl.style.height="320px";divscroll.style.width='730px';divscroll.style.height='335px';}message2.style.top=aboveheight1+'px';message2.style.left=iewidth1+'px';divscroll.name="miniwin";if ((myHeightnew <=586) && (val !="cal")){divscroll.style.height=imagedivheight+'px';divscroll.style.width="522px";blwtbl.style.height=imagedivheight+'px';message2.style.top=mtop+'px';}}function max(){var imagedivheightnew=myHeightnew-93;var imagedivwidthnew=myWidthnew-212;var imagedivheightnew1=myHeightnew-94;var h=window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;var browserName=navigator.appName; var mtop=h+7;if (divscroll.name=="miniwin"){message2.style.left="100px";message2.style.top=mtop+'px';divscroll.style.width=imagedivwidthnew+'px';divscroll.style.height=imagedivheightnew+'px';blwtbl.style.height=imagedivheightnew1+'px';divscroll.name="maxwin";mx.className="doff ";mx1.className="don blow b2";}else{mx.className="don blow bol";mx1.className="doff";bhw_js()}}
function blowup_show_js(){fll();divscroll=document.getElementById('divscroll');message2=document.getElementById('message2');prname=document.getElementById('prname');imagediv=document.getElementById('imagediv');blwtbl=document.getElementById('blwtbl');mx=document.getElementById('mx');mx1=document.getElementById('mx1');divscroll.style.height="";divscroll.style.width=""; var nAgt=navigator.userAgent;var patt=/Chrome/;if(patt.test(nAgt)){}else if(navigator.appName == 'Microsoft Internet Explorer'){document.getElementsByTagName("html")[0].style.overflow="hidden";}else{document.body.style.overflow="hidden";}message2.className="don";mx.className="don blow bol";mx1.className="doff";bhw_js();}
function blowup_show2(){divscroll=document.getElementById('divscroll');message2=document.getElementById('message2');prname=document.getElementById('prname');imagediv=document.getElementById('imagediv');blwtbl=document.getElementById('blwtbl');mx=document.getElementById('mx');mx1=document.getElementById('mx1');divscroll.style.height="";divscroll.style.width="";mx.className="doff";mx1.className="doff"; var nAgt=navigator.userAgent;var patt=/Chrome/;if(patt.test(nAgt)){message2.className="don";bhw_js('cal');}else{document.body.style.overflow="hidden";document.getElementsByTagName("html")[0].style.overflow="hidden";message2.className="don";bhw_js('cal');}}function blowup_off_js(){message2.className="doff";document.body.style.overflow="";document.getElementsByTagName("html")[0].style.overflow="";}var path='';var imgid="0";function imageset(id,imagepath){divscroll=document.getElementById('divscroll');message2=document.getElementById('message2');prname=document.getElementById('prname');imagediv=document.getElementById('imagediv');blwtbl=document.getElementById('blwtbl');mx=document.getElementById('mx');mx1=document.getElementById('mx1');path=imagepath;imgid=id;var pic=document.getElementById(imgid);productName=pic.alt;productName=unescape(productName);if(productName.length > 40){var c=productName.substring(0,40);c=c + "...";productName=c;}var nAgt=navigator.userAgent; var patt=/Opera/; if(patt.test(nAgt)) { imagediv.className="don"; document.getElementById('loadimg').className="doff"; }imagediv.innerHTML='<img src="'+path+'"   alt="'+productName+'" onload="loadimg()" id="bigimg">';prname.innerHTML=productName;}
function trustseal(path){imagediv.innerHTML='<iframe src="'+path+'"   height="830" width="520" onload="loadimg1();" id="ifrm" FRAMEBORDER="0" MARGINWIDTH="0"></iframe>';divscroll.style.width='550px';blwtbl.style.height="600px";mx.className="doff";mx1.className="doff";}

function NewWinIM(mypage,myname,compname)
{
//alert(compname);
mx=document.getElementById('mx');mx1=document.getElementById('mx1');
imagediv=document.getElementById('imagediv');
var embedcode='';
var arr=mypage.split('/');
if (mypage.search(/heavy\#\#/) != -1){
      mypage = mypage.replace('heavy##','');
      var hw='height=350,width=370';
      var embedcode = '<embed src="http://www.videowebtown.com/community/flvplayer/flvplayer.swf?file=http://www.videowebtown.com/indiamartvideo/video/'+mypage+'.flv&autoStart=false"  quality="high" bgcolor="#ffffff" width="352" height="288" name="movie" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
}
else
{
      var hw='height=350,width=370';
      var embedcode = '<embed src="http://www.4shared.com/flash/flvplayer.swf"   style="width: 400px; height: 326px;" bgcolor="#ffffff" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://dc152.4shared.com/img/'+arr[0]+'/'+arr[1]+'/dlink__2Fdownload_2F'+arr[0]+'_2F'+arr[1]+'_3Fdsid_3DJGITKOINJZHYGJIAJPJYHXISIQKIJFIVHXHZHYJIIZJBJPIWKSIRKQITIGJTIAGHGCIAHYJHINIQKVKU/preview.flv&amp;image=http://dc152.4shared.com/img/'+mypage+'&amp;autostart=true">';
}
//alert(imagediv.class);
prname.innerHTML=compname;
document.getElementById('loadimg').className="doff";
imagediv.className="don";
imagediv.innerHTML=embedcode;
divscroll.style.width='400px';
blwtbl.style.height='200px';
document.getElementById('divscroll').style.height='330px';

mx.className="doff";
mx1.className="doff";
imagediv.className="don";
}
function callfree1(glusr_id,modid)
{if(glusr_id !='' && modid != ''){var url = '/cgi/datetime.pl?supId='+glusr_id+'&modid='+modid;http_request = false;if(window.XMLHttpRequest){http_request = new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/html');}}else if(window.ActiveXObject){try
{http_request = new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try{http_request = new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}}}http_request.onreadystatechange = function() {alertContents(http_request); };http_request.open('GET', url, true);http_request.send(null);}else{alert('There is some technical problem.Please try after some time.');}}
function alertContents(http_request)
{if (http_request.readyState == 4)
{if (http_request.status == 200){var my_result = http_request.responseText;if(my_result == 1)
{alert('There is some technical problem.Please try after some time.');}else
{var strarr = my_result.split("##");comp_nm = strarr[1];comp_nm = comp_nm.replace(/\\'/g,"'");comp_nm = escape(comp_nm);comp_nm='&supCompName='+comp_nm;callpath= strarr[0]+comp_nm;document.getElementById('imagediv').innerHTML='<iframe src="'+callpath+'"   height = "320" width = "718" onload="loadimg1()" FRAMEBORDER="0" MARGINWIDTH="0" SCROLLING="no"></iframe>';document.getElementById('divscroll').style.width='730px';document.getElementById('divscroll').style.height='335px';}}}}

function loadimg(){document.getElementById('loadimg').className="doff";imagediv.className="don";if(document.getElementById('bigimg').height > 500 || document.getElementById('bigimg').width > 500){max();}}
function loadimg1(){document.getElementById('loadimg').className="doff";imagediv.className="don";}document.write('<DIV ID="message2" STYLE="position:absolute;top:0px;left:0px;z-index:2000";ALIGN="center" class="doff"><table ID="tableheight" ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0"><tr><TD ALIGN="center"><table CLASS="bgclor" BORDER="0" CELLPADDING="0" CELLSPACING="0"><tr><TD ALIGN="center"><table CLASS="blow main" ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="35"><tr><TD ID="titleBar"STYLE="cursor:move"><ILAYER WIDTH="100%" ONSELECTSTART="return false"> </ILAYER><layer WIDTH="100%" ONMOUSEOVER="isHot=true;if (isN4) ddN4(message2)" ONMOUSEOUT="isHot=false"><DIV ID="prname" CLASS="pr-txt"></DIV></LAYER></TD><TD ALIGN="right" STYLE="padding-right:0px;" WIDTH="100"><table BORDER="0" CELLPADDING="0" CELLSPACING="0"><tr><TD><img src="ts/zero.gif"  id="mx" WIDTH="21" HEIGHT="21" STYLE="cursor:pointer" ONCLICK="max()" HSPACE="2" class="don blow bol" title="Maximize"></TD><TD><img src="ts/zero.gif"    id="mx1" WIDTH="21" HEIGHT="21" STYLE="cursor:pointer;" class="doff" ONCLICK="max()" HSPACE="2" title="Restore"></TD><TD><img src="ts/zero.gif"   WIDTH="21" HEIGHT="21" hspace="3" ONCLICK="blowup_off_js()" class="blow clos" STYLE="cursor:pointer" title="Close"></TD></tr></table></TD></tr></table><DIV CLASS="image_div" ID="divscroll" ALIGN="center"><table ID="blwtbl" ALIGN="center" BGCOLOR="#ffffff" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><tr><TD ALIGN="center"><DIV ID="loadimg" STYLE="font-family:arial;font-size:15px;" class="doon"><img src="ts/indicator-new.gif"    height="36" width="36"><BR><BR>Loading...</DIV><DIV ID="imagediv" class="doff"></DIV></TD></tr></table></DIV></TD></tr></table></TD></tr></table></DIV>');
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;
function ddInit(e){
topDog=isIE ? "BODY" : "HTML";
whichDog=isIE ? document.all.message2 : document.getElementById("message2");
hotDog=isIE ? event.srcElement : e.target;
while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;}
if (hotDog.id=="titleBar"){
offsetx=isIE ? event.clientX : e.clientX;
offsety=isIE ? event.clientY : e.clientY;
nowX=parseInt(whichDog.style.left);
nowY=parseInt(whichDog.style.top);
ddEnabled=true;
document.onmousemove=dd;}}
function dd(e){
if (!ddEnabled) return;
whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx+'px';
whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety+'px';
return false;}
function ddN4(whatDog){
if (!isN4) return;
N4=eval(whatDog);
N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
N4.onmousedown=function(e){
N4.captureEvents(Event.MOUSEMOVE);
N4x=e.x;
N4y=e.y;}
N4.onmousemove=function(e){
if (isHot){
N4.moveBy(e.x-N4x,e.y-N4y);
return false;}}
N4.onmouseup=function(){
N4.releaseEvents(Event.MOUSEMOVE);}}
function hideMe(){
if (isIE||isNN) whichDog.style.visibility="hidden";
else if (isN4) document.message2.visibility="hide";}
function showMe(){
if (isIE||isNN) whichDog.style.visibility="visible";
else if (isN4) document.message2.visibility="show";}
function fll()
{
document.body.onmousedown=ddInit;
}
document.onmouseup=Function("ddEnabled=false");
function keyDown(e, trace){if (trace=="home"){
var n=(window.Event) ? e.which : e.keyCode;if(n==9 && 
document.getElementById('message2').className=="don"){return false;}else 
if(n==32 && document.getElementById('message2').className=="don"){return 
false;}
else if(n==27 && 
document.getElementById('message2').className=="don"){blowup_off_js();}}
else{var n=(window.Event) ? e.which : e.keyCode;if(n==9 && 
p_blo.className=="don"){return false;}else if(n==32 && 
p_blo.className=="don"){return false;}else if(n==27 && 
p_blo.className=="don"){blowup_hide();}if((n==37 && 
p_blo.className=="don") || (n==38 && p_blo.className=="don")){if 
(imgid==1){return false;}previousimg();}else if((n==39 && 
p_blo.className=="don") || (n==40 && p_blo.className=="don")){if 
(imgid==dataref1.length){return false;}
nextimg();return false;}}}
var persistmenu="yes"
var persisttype="sitewide"
if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.tog{display: none;}\n')
document.write('.tbq{display: none;}\n')
document.write('.sub1{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu2(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv2").getElementsByTagName("div");
if(el.style.display != "block"){
for (var i=0; i<ar.length; i++){
if (ar[i].className=="sub1")
ar[i].style.display = "none";
}
el.style.display = "block";}
else{
el.style.display = "none";
}}}

//dynamiclayout effect start




