// urbanstudio Oliver Feiler

function showvideo(clipid) {
  window.open('clip.php?clip=' + clipid + '','clip','width=320,height=400');
}

function US_swapImgRestore() { //v3.0
  var i,x,a=document.US_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function US_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.US_p) d.US_p=new Array();
    var i,j=d.US_p.length,a=US_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.US_p[j]=new Image; d.US_p[j++].src=a[i];}}
}

function US_findObj(n, d) { //v4.01
  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=US_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function US_swapImage() { //v3.0
  var i,j=0,x,a=US_swapImage.arguments; document.US_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=US_findObj(a[i]))!=null){document.US_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function US_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.US_pgW=innerWidth; document.US_pgH=innerHeight; onresize=US_reloadPage; }}
  else if (innerWidth!=document.US_pgW || innerHeight!=document.US_pgH) location.reload();
}

function US_addBookmark() {
  window.external.AddFavorite(document.location.href, 'urbanhosting.de');
}

function US_printsite(URL) {
  window.open(URL,'us_pop','width=650,height=500,scrollbars=yes');
}

function US_popImage(image, w, h) {
  window.open('popup.php?IMG='+image,'us_popImage','width=' + w + ',height=' + h + ',scrollbars=no');
}

function US_popPlayer(album) {
  window.open('../../musicplayer/' + album + '/' + album + '.php','pop_' + album,'width=460,height=460');
}

function US_showLayer(x) {
	document.getElementById(x).style.display="inline";
}

function US_hideLayer(x) {
	document.getElementById(x).style.display="none";
}

function boutique(_l) {
  z = window.open('http://www.kathykelly.de/boutique/frame.php?language=' + _l + '','boutique','width=758,height=448');
  z.focus();
}

US_reloadPage(true);

standardtatus = "kathykelly.de";
window.defaultStatus = standardtatus;
