/* 
 * 
 */
//Create your sharelet with desired properties and set button element to false



$(document).ready(function()
{
    
    //create share link and send email to a friend
    var shared_object = SHARETHIS.addEntry({
    title:'OfficeCavalry.com ',
    summary: $('meta[name=description]').attr("content")},
    {button:false,onmouseover:false,offsetLeft:-290, offsetTop: 0});

    var shared_object2 = SHARETHIS.addEntry({
    title:'OfficeCavalry.com ',
    summary: $('meta[name=description]').attr("content")},
    {button:false,onmouseover:false,offsetLeft:-225, offsetTop: 0});

    //Tie customized button to ShareThis button functionality.
    var element = document.getElementById("share");
    shared_object.attachButton(element);
    shared_object2.attachChicklet('email', document.getElementById('st_email'));

    if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) &&
      document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule)
     {
      document.styleSheets[0].addRule('.transparent', 'behavior: url(' + oc.constants.base_url + 'css/prelaunch/iepngfix.htc)');
     }

   if ( document.all && (/MSIE (5\.5|6)/.test(navigator.userAgent) ))
   {
       $('.select').addClass('left');
   }
   else
   {
       $('.select').each(function(){
           width = $(this).outerWidth()-9;
           $(this).css('width',width);
           $(this).wrap('<div class="selectWrap">');
            if($(this).hasClass('spacing')){
                $(this).removeClass('spacing');
                $(this).parent().addClass('spacing');
            }
       });
    }


     
    var theframes = document.getElementsByTagName('iframe');
	for(var i = 0; i < theframes.length; i++)
	{
		theframes[i].setAttribute("allowTransparency","true");
	}




});


