function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_findObj(n, d) {
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() 
{
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
function getOffsetLeft (el) 
{
var ol = el.offsetLeft;
while ((el = el.offsetParent) != null)
ol += el.offsetLeft;
return ol;
}
function getOffsetTop (el) 
{
var ot = el.offsetTop;
while((el = el.offsetParent) != null)
ot += el.offsetTop;
return ot;
}
function findCoordinates(table) 
{
var tableLeft = getOffsetLeft(table);
var tableTop = getOffsetTop(table);
document.getElementById('Flash').style.left= 155;
document.getElementById('Flash').style.top= 104;
}
function lib_bwcheck()
{
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
this.ns4=(document.layers && !this.dom)?1:0;
this.ns7=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
function splashmovie()
{
document.write('<div id=Flash style="position:absolute;height:500;width:780;top:0px;left:0px;visibility:hidden;display:inline;z-index:103"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ID=swfmovie WIDTH="100%" HEIGHT="100%" style="visibility:hidden;display:none"><PARAM NAME=movie VALUE="/OwnLogoPopup.swf"><PARAM NAME=quality VALUE=autohigh><PARAM NAME=loop VALUE=false><param name=wmode value=transparent><param name=play value=false>');
document.writeln('</'+'object'+'>');
document.writeln('</'+'div'+'>');
var bw=new lib_bwcheck()
if (!(bw.ie5||bw.ie6))
{
MM_showHideLayers('Flash','','hide')
}
}
function addbookmark()
{
var bookmarkurl="http://www.creativebusinesslogos.com"
var bookmarktitle="Creative Business Logos"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
function runOnce(){
	var expDays = 1; // number of days the cookie should last

splashmovie();
function abaychal()
{
var ob=document.all.swfmovie;
ob.style.visibility="visible";
ob.style.display="inline";
ob.play();
}

function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('360slide')
if(count == null) {
SetCookie('360slide','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('360slide')
SetCookie('360slide',newcount,exp)
return count
}
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var count = GetCookie('360slide');
if (count == null) {
count=1;
SetCookie('360slide', count, exp);

abaychal();
findCoordinates(menuTable);

}
else {
count++;
SetCookie('360slide', count, exp);
}
}
checkCount();
	
}